Sha256: 47ccd14e4d15d25be3150447dd9a163d7438d47d4c3d76e38759b416abafba62
Contents?: true
Size: 841 Bytes
Versions: 1
Compression:
Stored size: 841 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| if(File.exists?(f)) status=Command.output("svn status #{f}") if(status.include?('?') || status.include?('was not found')) puts "svn add #{f} --parents" add "svn add #{f} --parents" else puts "#{status}" if status.strip.length > 0 puts " #{f}" if status.strip.length == 0 end end } end if(File.exists?('.git')) SOURCE.each{|f| status=`git status #{f}` add "git add #{f} -v" if status.include?('untracked') || status.include?('modified:') } end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dev-2.0.112 | lib/commands/add.rb |