Method: Git::Lib#checkout_index

Defined in:
lib/git/lib.rb

#checkout_index(opts = {})

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
# File 'lib/git/lib.rb', line 1603

def checkout_index(opts = {})
  ArgsBuilder.validate!(opts, CHECKOUT_INDEX_OPTION_MAP)
  args = build_args(opts, CHECKOUT_INDEX_OPTION_MAP)

  if (path = opts[:path_limiter]) && path.is_a?(String)
    args.push('--', path)
  end

  command('checkout-index', *args)
end