# More verbose "git fetch"?

3 messages from 2006-06-04 to 2006-06-04. Participants: Linus Torvalds, Junio C Hamano.
Thread: https://gitlist.dev/t/4386

## Linus Torvalds, 2006-06-04 01:11

Subject: More verbose "git fetch"?
Message-ID: <Pine.LNX.4.64.0606031809550.5498@g5.osdl.org>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0606031809550.5498%40g5.osdl.org

```

Is it just me who has been getting less accepting, or has "git fetch" 
gotten more verbose?

Has it always spit out those annoying

	xyz: same as branch 'xyz' of so-and-so-repo

even without "-v"? I thought I killed them at some point, but 
either they're back, or I'm just confused.

		Linus

```

## Junio C Hamano, 2006-06-04 05:28

Subject: Re: More verbose "git fetch"?
Message-ID: <7v7j3xebg6.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7v7j3xebg6.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <Pine.LNX.4.64.0606031809550.5498@g5.osdl.org>

```
Linus Torvalds <torvalds@osdl.org> writes:

> Has it always spit out those annoying
>
> 	xyz: same as branch 'xyz' of so-and-so-repo
>
> even without "-v"? I thought I killed them at some point, but 
> either they're back, or I'm just confused.

"same" is protected with [ "$verboase" ] only on the tag side
but not on the head side, which I think is a bug.  Will fix.

```

## Junio C Hamano, 2006-06-04 06:25

Subject: Re: More verbose "git fetch"?
Message-ID: <7v3bele8u6.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7v3bele8u6.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <7v7j3xebg6.fsf@assigned-by-dhcp.cox.net>

```
Junio C Hamano <junkio@cox.net> writes:

> Linus Torvalds <torvalds@osdl.org> writes:
>
>> Has it always spit out those annoying
>>
>> 	xyz: same as branch 'xyz' of so-and-so-repo
>>
>> even without "-v"? I thought I killed them at some point, but 
>> either they're back, or I'm just confused.
>
> "same" is protected with [ "$verboase" ] only on the tag side
> but not on the head side, which I think is a bug.  Will fix.

...like this.

---
diff --git a/git-fetch.sh b/git-fetch.sh
index 69bd810..6ee755c 100755
--- a/git-fetch.sh
+++ b/git-fetch.sh
@@ -166,7 +166,7 @@ fast_forward_local () {
 	    mb=$(git-merge-base "$local" "$2") &&
 	    case "$2,$mb" in
 	    $local,*)
-		echo >&2 "* $1: same as $3"
+	        [ "$verbose" ] && echo >&2 "* $1: same as $3"
 		;;
 	    *,$local)
 		echo >&2 "* $1: fast forward to $3"

```
