rebase-i: print an abbreviated hash when stop for editing

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 <ralf.thielow@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ralf Thielow committed Mar 28, 2016 at 18:00 UTC 14c793e8f409216b868223236fc54e5e5f86aa3a
1 file changed +2 -1
git-rebase--interactive.sh
+2 -1
@@ -552,7 +552,8 @@ do_next () {
552
553 mark_action_done
554 do_pick $sha1 "$rest"
555 - warn "Stopped at $sha1... $rest"
555 + sha1_abbrev=$(git rev-parse --short $sha1)
556 + warn "Stopped at $sha1_abbrev... $rest"
557 exit_with_patch $sha1 0
558 ;;
559 squash|s|fixup|f)