From: Junio C Hamano Date: Wed, 13 Apr 2016 21:12:30 +0000 (-0700) Subject: Merge branch 'rt/rebase-i-shorten-stop-report' X-Git-Tag: v2.9.0-rc0~134 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/5c788e7746a2b60e13a0e9235bb68a19a35c12ee?ds=inline;hp=-c Merge branch 'rt/rebase-i-shorten-stop-report' 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 --- 5c788e7746a2b60e13a0e9235bb68a19a35c12ee diff --combined git-rebase--interactive.sh index 4cde685b43,e98866e2a8..9ea30756f1 --- a/git-rebase--interactive.sh +++ b/git-rebase--interactive.sh @@@ -81,13 -81,17 +81,13 @@@ rewritten_pending="$state_dir"/rewritte # and leaves CR at the end instead. cr=$(printf "\015") -strategy_args= -if test -n "$do_merge" -then - strategy_args=${strategy:+--strategy=$strategy} - eval ' - for strategy_opt in '"$strategy_opts"' - do - strategy_args="$strategy_args -X$(git rev-parse --sq-quote "${strategy_opt#--}")" - done - ' -fi +strategy_args=${strategy:+--strategy=$strategy} +eval ' + for strategy_opt in '"$strategy_opts"' + do + strategy_args="$strategy_args -X$(git rev-parse --sq-quote "${strategy_opt#--}")" + done +' GIT_CHERRY_PICK_HELP="$resolvemsg" export GIT_CHERRY_PICK_HELP @@@ -548,7 -552,8 +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) @@@ -1233,8 -1238,7 +1234,8 @@@ the git rev-list $revisions | while read rev do - if test -f "$rewritten"/$rev && test "$(sane_grep "$rev" "$state_dir"/not-cherry-picks)" = "" + if test -f "$rewritten"/$rev && + ! sane_grep "$rev" "$state_dir"/not-cherry-picks >/dev/null then # Use -f2 because if rev-list is telling us this commit is # not worthwhile, we don't want to track its multiple heads,