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

[PATCH] rebase-i: print abbreviated hash when stop for editing

From
Ralf Thielow <ralf.thielow@gmail.com>
Date
Mar 24, 2016, 18:31 UTC
Message-ID
<1458844281-13107-1-git-send-email-ralf.thielow@gmail.com>
Signed-off-by: Ralf Thielow <ralf.thielow@gmail.com>
---
 git-rebase--interactive.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh
index 4cde685..9ea3075 100644
--- a/git-rebase--interactive.sh
+++ b/git-rebase--interactive.sh
@@ -548,7 +548,8 @@ do_next () {
 
 		mark_action_done
 		do_pick $sha1 "$rest"
-		warn "Stopped at $sha1... $rest"
+		sha1_abbrev=$(git rev-parse --short $sha1)
+		warn "Stopped at $sha1_abbrev... $rest"
 		exit_with_patch $sha1 0
 		;;
 	squash|s|fixup|f)
-- 
2.8.0.rc4.7.g35d7ca9.dirty
Next: Junio C Hamano
Message 1 of 5 in “rebase-i: print abbreviated hash when stop for editing”
  1. rebase-i: print abbreviated hash when stop for editingRalf Thielow, Mar 24, 2016
  2. Junio C HamanoMar 24, 2016
  3. Ralf ThielowMar 24, 2016
  4. rebase-i: print an abbreviated hash when stop for editingRalf Thielow, Mar 28, 2016
  5. Junio C HamanoMar 28, 2016

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.