Skip to content

Commit

Permalink
Merge branch 'sr/am-show-final-message-in-applying-indicator'
Browse files Browse the repository at this point in the history
In addition to the case where the user edits the log message with
the "e)dit" option of "am -i", replace the "Applying: this patch"
message with the final log message contents after applymsg hook
munges it.

* sr/am-show-final-message-in-applying-indicator:
  git-am: show the final log message on "Applying:" indicator
  • Loading branch information
Junio C Hamano committed Apr 1, 2013
2 parents 0cb24fe + b34a912 commit f161fb0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions git-am.sh
Original file line number Diff line number Diff line change
Expand Up @@ -778,13 +778,6 @@ To restore the original branch and stop patching run \"\$cmdline --abort\"."
action=yes
fi

if test -f "$dotest/final-commit"
then
FIRSTLINE=$(sed 1q "$dotest/final-commit")
else
FIRSTLINE=""
fi

if test $action = skip
then
go_next
Expand All @@ -797,6 +790,13 @@ To restore the original branch and stop patching run \"\$cmdline --abort\"."
stop_here $this
fi

if test -f "$dotest/final-commit"
then
FIRSTLINE=$(sed 1q "$dotest/final-commit")
else
FIRSTLINE=""
fi

say "$(eval_gettext "Applying: \$FIRSTLINE")"

case "$resolved" in
Expand Down

0 comments on commit f161fb0

Please sign in to comment.