Skip to contentSkip to conversation

git-tag.txt: <commit> for --contains is optional

PATCH In review Nguyễn Thái Ngọc Duy 2 participants 2 messages Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 Documentation/git-tag.txt | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Documentation/git-tag.txt +3 -2
index c418c44..404257d 100644
@@ -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.
Signature · 1 line
1.8.5.2.240.g8478abd
#1 lore raw
Quoted 15 lines · Nguyễn Thái Ngọc Duy

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.

---
 Documentation/git-tag.txt | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Documentation/git-tag.txt +0 -0
index c418c44..404257d 100644

Documentation/git-tag.txt OPTIONS · line 108

Quoted 8 lines
Documentation/git-tag.txt +3 -2
@@ -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).

Thanks.

Quoted 3 lines
Documentation/git-tag.txt +0 -0
 --points-at <object>::
 	Only list tags of the given object.