Create a new git tag
repo.add_tag('tag_name', object_reference) repo.add_tag('tag_name', object_reference, {:options => 'here'}) repo.add_tag('tag_name', {:options => 'here'})
Parameters:
The name of the tag to add
Opstions to pass to git tag. See git-tag for more details.
git tag
Options Hash (*options):
Make an unsigned, annotated tag object
An alias for the :annotate option
:annotate
Delete existing tag with the given names.
Replace an existing tag with the given name (instead of failing)
Use the given tag message
An alias for the :message option
:message
Make a GPG-signed tag.
633 634 635 636
# File 'lib/git/base.rb', line 633 def add_tag(name, *options) lib.tag(name, *options) tag(name) end