Method: MGit::CheckoutCommand#execute

Defined in:
lib/mgit/commands/checkout.rb

#execute(args) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'lib/mgit/commands/checkout.rb', line 3

def execute(args)
  @commit = args.shift

  if repos.empty?
    perror "Couldn't find commit #{@commit} in any repository."
  else
    checkout_all
  end
end