Method: Git::Lib#merge
- Defined in:
- lib/git/lib.rb
#merge(branch, message = nil, 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.
1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 |
# File 'lib/git/lib.rb', line 1328 def merge(branch, = nil, opts = {}) # For backward compatibility, treat the message arg as the :m option. opts[:m] = if ArgsBuilder.validate!(opts, MERGE_OPTION_MAP) args = build_args(opts, MERGE_OPTION_MAP) args.concat(Array(branch)) command('merge', *args) end |