threads / discuss / 4386

More verbose "git fetch"?

Subject: More verbose "git fetch"?

## tl;dr

3 messages between Jun 4, 2006 and Jun 4, 2006.

replies: 2people: 2as markdown or json

Linus Torvalds· Jun 4, 2006, 01:11 UTC · lore

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· Jun 4, 2006, 05:28 UTC · re: Linus Torvalds · lore

Re: More verbose "git fetch"?

Linus Torvalds <torvalds@osdl.org> writes:
Show 6 quoted lines
> 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· Jun 4, 2006, 06:25 UTC · re: Junio C Hamano · lore

Re: More verbose "git fetch"?

Junio C Hamano <junkio@cox.net> writes:
Show 11 quoted lines
> 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"

← back to recent threads