Sha256: f3bb919f044df41a13ac661a6215ae37413f345aacf7fc921fd63789b167e827
Contents?: true
Size: 653 Bytes
Versions: 2
Compression:
Stored size: 653 Bytes
Contents
class Add < Array def update if(File.exists?('.git') && File.exists?('.gitignore')) add 'git add --all' else if(defined?(SOURCE)) if(File.exists?('.svn')) SOURCE.each{|f| add "svn add #{f} --parents" if Command.output("svn status #{f}").include?('?') add "svn add #{f} --parents" if Command.output("svn status #{f}").include?('was not found') add "svn add #{f} --parents" if Command.exit_code("svn status #{f}") != 0 } end if(File.exists?('.git')) SOURCE.each{|f| add "git add #{f} -v" if `git status #{f}`.include?('untracked') } end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dev-2.0.106 | lib/commands/add.rb |
dev-2.0.105 | lib/commands/add.rb |