Skip to content

Commit 81966ab

Browse files
pcloudsgitster
authored andcommitted
git-tag.txt: <commit> for --contains is optional
This goes far back to e84fb2f (branch --contains: default to HEAD - 2008-07-08) where the same parsing code is shared with builtin/tag.c. git-branch.txt correctly states that <commit> for --contains is optional while git-tag.txt does not. Correct it. Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2f93541 commit 81966ab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Documentation/git-tag.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,9 @@ OPTIONS
103103
+
104104
This option is only applicable when listing tags without annotation lines.
105105

106-
--contains <commit>::
107-
Only list tags which contain the specified commit.
106+
--contains [<commit>]::
107+
Only list tags which contain the specified commit (HEAD if not
108+
specified).
108109

109110
--points-at <object>::
110111
Only list tags of the given object.

0 commit comments

Comments
 (0)