Skip to content

Commit a70d410

Browse files
flojongitster
authored andcommitted
git-am: Make it easier to see which patch failed
When git-am fails it's not always easy to see which patch failed, since it's often hidden by a lot of error messages. Add an extra line which prints the name of the failed patch just before the resolve message to make it easier to find. Signed-off-by: Jonas Flodén <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7bbd8d6 commit a70d410

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-am.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ do
501501
fi
502502
if test $apply_status != 0
503503
then
504-
echo Patch failed at $msgnum.
504+
echo "Patch failed at $msgnum $FIRSTLINE"
505505
stop_here_user_resolve $this
506506
fi
507507

0 commit comments

Comments
 (0)