git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-tag.txt: <commit> for --contains is optional
@ 2014-02-04  2:56 Nguyễn Thái Ngọc Duy
  2014-02-04 18:36 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Nguyễn Thái Ngọc Duy @ 2014-02-04  2:56 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano, 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.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
---
 Documentation/git-tag.txt | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Documentation/git-tag.txt b/Documentation/git-tag.txt
index c418c44..404257d 100644
--- a/Documentation/git-tag.txt
+++ b/Documentation/git-tag.txt
@@ -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.
-- 
1.8.5.2.240.g8478abd

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] git-tag.txt: <commit> for --contains is optional
  2014-02-04  2:56 [PATCH] git-tag.txt: <commit> for --contains is optional Nguyễn Thái Ngọc Duy
@ 2014-02-04 18:36 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2014-02-04 18:36 UTC (permalink / raw)
  To: Nguyễn Thái Ngọc Duy; +Cc: git

Nguyễn Thái Ngọc Duy  <pclouds@gmail.com> writes:

> 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>
> ---
>  Documentation/git-tag.txt | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/git-tag.txt b/Documentation/git-tag.txt
> index c418c44..404257d 100644
> --- a/Documentation/git-tag.txt
> +++ b/Documentation/git-tag.txt
> @@ -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.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-04 18:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-04  2:56 [PATCH] git-tag.txt: <commit> for --contains is optional Nguyễn Thái Ngọc Duy
2014-02-04 18:36 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).