git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: More verbose "git fetch"?

From
Junio C Hamano <junkio@cox.net>
Date
Jun 4, 2006, 06:25 UTC
Message-ID
<7v3bele8u6.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<7v7j3xebg6.fsf@assigned-by-dhcp.cox.net>
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"
Previous: Junio C Hamano
Message 3 of 3 in “More verbose "git fetch"?”
  1. Linus TorvaldsJun 4, 2006
  2. Junio C HamanoJun 4, 2006
  3. Junio C HamanoJun 4, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.