@matheusbsbs / matheus-bagliano / commits / a2d07d80ec
Fork 0

document that git-tag can tag more than heads

After looking the git-tag manpage, someone on #git wondered how to tag a commit that is not a branch head. This patch changes the synopsis to say "<commit> | <object>" instead of "<head>" to address his question. Samuel Bronson had the idea of putting "<commit> | <object>" for "<object>" because most tags point to commits (and for the rest of the manpage, all tags point to commits). Signed-off-by: Jonathan Nieder <jrnieder@uchicago.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jonathan Nieder committed Jul 24, 2008 at 11:55 UTC a2d07d80ec9dfff0e51cac534be7c1642a47f8fb
1 file changed +2 -1
Documentation/git-tag.txt
+2 -1
@@ -9,7 +9,8 @@ git-tag - Create, list, delete or verify a tag object signed with GPG
9 SYNOPSIS
10 --------
11 [verse]
12 -'git tag' [-a | -s | -u <key-id>] [-f] [-m <msg> | -F <file>] <name> [<head>]
12 +'git tag' [-a | -s | -u <key-id>] [-f] [-m <msg> | -F <file>]
13 + <name> [<commit> | <object>]
14 'git tag' -d <name>...
15 'git tag' [-n[<num>]] -l [<pattern>]
16 'git tag' -v <name>...