# [PATCH] for-each-ref: fix description of '--contains' in manpage

2 messages from 2016-03-30 to 2016-03-30. Participants: SZEDER Gábor, Junio C Hamano.
Thread: https://gitlist.dev/t/41876

## SZEDER Gábor, 2016-03-30 13:48

Subject: [PATCH] for-each-ref: fix description of '--contains' in manpage
Message-ID: <1459345710-8088-1-git-send-email-szeder@ira.uka.de>
URL: https://gitlist.dev/e/1459345710-8088-1-git-send-email-szeder%40ira.uka.de

```
'git for-each-ref's manpage says that '--contains' only lists tags,
but it lists all kinds of refs.

Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
---
 Documentation/git-for-each-ref.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/git-for-each-ref.txt b/Documentation/git-for-each-ref.txt
index 012e8f9a080d..c52578bb87cc 100644
--- a/Documentation/git-for-each-ref.txt
+++ b/Documentation/git-for-each-ref.txt
@@ -76,7 +76,7 @@ OPTIONS
 	specified commit (HEAD if not specified).
 
 --contains [<object>]::
-	Only list tags which contain the specified commit (HEAD if not
+	Only list refs which contain the specified commit (HEAD if not
 	specified).
 
 FIELD NAMES
-- 
2.8.0.46.gb821760

```

## Junio C Hamano, 2016-03-30 20:59

Subject: Re: [PATCH] for-each-ref: fix description of '--contains' in manpage
Message-ID: <xmqqlh4zsmvu.fsf@gitster.mtv.corp.google.com>
URL: https://gitlist.dev/e/xmqqlh4zsmvu.fsf%40gitster.mtv.corp.google.com
In-Reply-To: <1459345710-8088-1-git-send-email-szeder@ira.uka.de>

```
SZEDER Gábor <szeder@ira.uka.de> writes:

> 'git for-each-ref's manpage says that '--contains' only lists tags,
> but it lists all kinds of refs.
>
> Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
> ---

Thanks; will apply on top of 4a71109a (for-each-ref: add
'--contains' option, 2015-07-07) so that we can eventually
include it in 2.7.x maintenance track.

>  Documentation/git-for-each-ref.txt | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/git-for-each-ref.txt b/Documentation/git-for-each-ref.txt
> index 012e8f9a080d..c52578bb87cc 100644
> --- a/Documentation/git-for-each-ref.txt
> +++ b/Documentation/git-for-each-ref.txt
> @@ -76,7 +76,7 @@ OPTIONS
>  	specified commit (HEAD if not specified).
>  
>  --contains [<object>]::
> -	Only list tags which contain the specified commit (HEAD if not
> +	Only list refs which contain the specified commit (HEAD if not
>  	specified).
>  
>  FIELD NAMES

```
