Sha256: c428ce2ac5066f307c33ce2f941904ee6442fbc9c09b0420d5a7d1606fdb76de
Contents?: true
Size: 552 Bytes
Versions: 7
Compression:
Stored size: 552 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.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
7 entries across 7 versions & 2 rubygems
Version | Path |
---|---|
dev-2.0.46 | lib/add.rb |
dev-2.0.45 | lib/add.rb |
dev-2.0.44 | lib/add.rb |
dev-2.0.43 | lib/add.rb |
dev-2.0.42 | lib/add.rb |
dev_commands-0.0.58 | lib/add.rb |
dev_commands-0.0.57 | lib/add.rb |