Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'rt/rebase-i-shorten-stop-report'
author
Junio C Hamano
<gitster@pobox.com>
Wed, 13 Apr 2016 21:12:30 +0000
(14:12 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 13 Apr 2016 21:12:30 +0000
(14:12 -0700)
The commit object name reported when "rebase -i" stops has been
shortened.
* rt/rebase-i-shorten-stop-report:
rebase-i: print an abbreviated hash when stop for editing
git-rebase--interactive.sh
patch
|
blob
|
history
raw
(from parent 1:
8b7475a
)
diff --git
a/git-rebase--interactive.sh
b/git-rebase--interactive.sh
index 4cde685b43a4463bac5f96bcb4f8ed8b3e9347be..9ea30756f13349c96784f0091da4c3c667166485 100644
(file)
--- 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)