]> rtime.felk.cvut.cz Git - git.git/commitdiff
git-tag.txt: <commit> for --contains is optional
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Tue, 4 Feb 2014 02:56:26 +0000 (09:56 +0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 4 Feb 2014 18:35:58 +0000 (10:35 -0800)
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 <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-tag.txt

index c418c44d40d1494d2f87d6ed45c229a56064f0b3..404257df9fcad2ac5428b0608341e0c6d1337384 100644 (file)
@@ -103,8 +103,9 @@ OPTIONS
 +
 This option is only applicable when listing tags without annotation lines.
 
---contains <commit>::
-       Only list tags which contain the specified commit.
+--contains [<commit>]::
+       Only list tags which contain the specified commit (HEAD if not
+       specified).
 
 --points-at <object>::
        Only list tags of the given object.