Method: Git::Lib#tag

Defined in:
lib/git/lib.rb

#tag(name, *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.



1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
# File 'lib/git/lib.rb', line 1434

def tag(name, *args)
  opts = args.last.is_a?(Hash) ? args.pop : {}
  target = args.first

  validate_tag_options!(opts)
  ArgsBuilder.validate!(opts, TAG_OPTION_MAP)

  flags = build_args(opts, TAG_OPTION_MAP)
  positional_args = [name, target].compact

  command('tag', *flags, *positional_args)
end