Skip to content

Commit b7e438f

Browse files
pugmajereJunio C Hamano
authored andcommitted
Update the documentation for git-tag-script to reflect current behavior.
[jc: I updated Ryan's patch to mention -a to create an unsigned tag.] Signed-off-by: Ryan Anderson <ryan@michonline.com>
1 parent 0fad0fd commit b7e438f

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

Documentation/git-tag-script.txt

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,25 @@ v0.1, May 2005
44

55
NAME
66
----
7-
git-tag-script - An example script to create a tag object signed with GPG
7+
git-tag-script - Create a tag object signed with GPG
88

99

1010

1111
SYNOPSIS
1212
--------
13-
'git-tag-script'
13+
'git-tag-script' [-s | -a] [-f] <name>
1414

1515
DESCRIPTION
1616
-----------
17-
This is an example script that uses "git-mktag" to create a tag object
18-
signed with GPG.
17+
Adds a "tag" reference in .git/refs/tags/
18+
19+
Unless "-f" is given, the tag must not yet exist in ".git/refs/tags"
20+
21+
If "-s" or "-a" is passed, the user will be prompted for a tag message.
22+
and a tag object is created. Otherwise just the SHA1 object
23+
name of the commit object is written.
24+
25+
A GnuPG signed tag object will be created when "-s" is used.
1926

2027

2128
Author
@@ -29,4 +36,3 @@ Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel
2936
GIT
3037
---
3138
Part of the link:git.html[git] suite
32-

0 commit comments

Comments
 (0)