From: Ralf Thielow Date: Mon, 28 Mar 2016 16:00:00 GMT Subject: [PATCH v2] rebase-i: print an abbreviated hash when stop for editing Message-ID: <1459180800-5744-1-git-send-email-ralf.thielow@gmail.com> In-Reply-To: <1458844281-13107-1-git-send-email-ralf.thielow@gmail.com> The message that is shown when rebase-i stops for editing prints the full hash of the commit where it stopped which makes the message overflow to the next line on smaller terminal windows. Print an abbreviated hash instead. Signed-off-by: Ralf Thielow --- 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.285.gc3ac548