Skip to content

Commit

Permalink
Merge branch 'pg/maint-1.7.9-am-where-is-patch' into maint
Browse files Browse the repository at this point in the history
When "git am" failed, old timers knew to check .git/rebase-apply/patch
to see what went wrong, but we never told the users about it.

* pg/maint-1.7.9-am-where-is-patch:
  am: indicate where a failed patch is to be found
  • Loading branch information
Junio C Hamano committed Jul 30, 2012
2 parents 8ba105d + 14bf2d5 commit 9b67f56
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Documentation/config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ advice.*::
Advice shown when you used linkgit:git-checkout[1] to
move to the detach HEAD state, to instruct how to create
a local branch after the fact.
amWorkDir::
Advice that shows the location of the patch file when
linkgit:git-am[1] fails to apply it.
--

core.fileMode::
Expand Down
5 changes: 5 additions & 0 deletions git-am.sh
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,11 @@ did you forget to use 'git add'?"
if test $apply_status != 0
then
eval_gettextln 'Patch failed at $msgnum $FIRSTLINE'
if test "$(git config --bool advice.amworkdir)" != false
then
eval_gettextln "The copy of the patch that failed is found in:
$dotest/patch"
fi
stop_here_user_resolve $this
fi

Expand Down

0 comments on commit 9b67f56

Please sign in to comment.