lib/add.rb in dev_commands-0.0.21 vs lib/add.rb in dev_commands-0.0.22

- old
+ new

@@ -4,10 +4,13 @@ add 'git add --all' else if(defined?(SOURCE)) if(File.exists?('.svn')) SOURCE.each{|f| - add "svn add #{f} --parents" if `svn status #{f}`.include?('?') + + add "svn add #{f} --parents" if Command.output("svn status #{f}").include?('?') + add "svn add #{f} --parents" if Command.exit_code("svn status #{f}") != 0 + #add "svn add #{f} --parents" if status.include?('?') || status.include?(n) } end if(File.exists?('.git')) SOURCE.each{|f| add "git add #{f} -v" if `git status #{f}`.include?('untracked') \ No newline at end of file