Sha256: 7e45153aeb27eb1e3ce76cec8100dbb6c6bf53947396d86d72cdcb51fd2c6374

Contents?: true

Size: 318 Bytes

Versions: 1

Compression:

Stored size: 318 Bytes

Contents

command :forget do |c|
  c.workflow :hg
  c.desc "Remove the file from the staging area"
  
  c.on_run do |opts, args|
    repo = opts[:repository]
    
    puts "Removing #{args.size} file#{args.size == 1 ? '' : 's'} from the staging area"
    args.each {|f| repo.staging_area.normal f; print '.'}
    puts
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
amp-0.5.3 lib/amp/commands/commands/workflows/hg/forget.rb