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

[PATCH] git-fetch: print the new and old ref when fast-forwarding

From
Lukas Sandström <lukass@etek.chalmers.se>
Date
Feb 25, 2006, 11:20 UTC
Message-ID
<44003D6D.2010406@etek.chalmers.se>
Signed-off-by: Lukas Sandström <lukass@etek.chalmers.se>

--- This is useful when you check out new changes with gitk. Just copy/paste the old ref into gitk from the terminal.

 git-fetch.sh |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
78f2844c17bb8627e84389e3026906d074c43363
diff --git a/git-fetch.sh b/git-fetch.sh
index fcc24f8..a3e2a34 100755
--- a/git-fetch.sh
+++ b/git-fetch.sh
@@ -164,6 +164,7 @@ fast_forward_local () {
 		;;
 	    *,$local)
 		echo >&2 "* $1: fast forward to $3"
+		echo >&2 "  from $local to $2"
 		git-update-ref "$1" "$2" "$local"
 		;;
 	    *)
-- 
1.2.3.gc412
Next: Johannes Schindelin
Message 1 of 3 in “git-fetch: print the new and old ref when fast-forwarding”
  1. git-fetch: print the new and old ref when fast-forwardingLukas Sandström, Feb 25, 2006
  2. Johannes SchindelinFeb 25, 2006
  3. Junio C HamanoFeb 25, 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.