Method: Git::Lib#merge_base

Defined in:
lib/git/lib.rb

#merge_base(*args)

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.



1346
1347
1348
1349
1350
1351
1352
1353
1354
# File 'lib/git/lib.rb', line 1346

def merge_base(*args)
  opts = args.last.is_a?(Hash) ? args.pop : {}
  ArgsBuilder.validate!(opts, MERGE_BASE_OPTION_MAP)

  flags = build_args(opts, MERGE_BASE_OPTION_MAP)
  command_args = flags + args

  command('merge-base', *command_args).lines.map(&:strip)
end