Skip to content

Commit 2116cf9

Browse files
Updating doc
1 parent f5caf77 commit 2116cf9

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,18 @@ And here are the operations that will need to write to your git repository.
203203
g.pull(Git::Repo, Git::Branch) # fetch and a merge
204204

205205
g.add_tag('tag_name') # returns Git::Tag
206+
g.add_tag('tag_name', 'object_reference')
207+
g.add_tag('tag_name', 'object_reference', {:options => 'here'})
208+
g.add_tag('tag_name', {:options => 'here'})
209+
210+
Options:
211+
:a | :annotate
212+
:d
213+
:f
214+
:m | :message
215+
:s
216+
217+
g.delete_tag('tag_name')
206218

207219
g.repack
208220

lib/git/base.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ def tag(tag_name)
417417
# Options:
418418
# :a | :annotate -> true
419419
# :d -> true
420+
# :f -> true
420421
# :m | :message -> String
421422
# :s -> true
422423
#

0 commit comments

Comments
 (0)