Sha256: 6d8b0cd711e0e27e26b25bfdcfe4fc1ce298f4c4b374f3844c0a8d90f15b52be
Contents?: true
Size: 554 Bytes
Versions: 5
Compression:
Stored size: 554 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
dev-2.0.104 | lib/commands/add.rb |
dev-2.0.103 | lib/commands/add.rb |
dev-2.0.102 | lib/commands/add.rb |
dev-2.0.101 | lib/commands/add.rb |
dev-2.0.100 | lib/commands/add.rb |