Skip to content

Commit

Permalink
git-tag.txt: <commit> for --contains is optional
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nguyễn Thái Ngọc Duy authored and Junio C Hamano committed Feb 4, 2014
1 parent 2f93541 commit 81966ab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Documentation/git-tag.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 81966ab

Please sign in to comment.