Skip to content

Commit dc267b1

Browse files
artagnongitster
authored andcommitted
git am: Display some help text when patch is empty
When a patch is found to be empty, prompt the user to use either --skip or --abort. Signed-off-by: Ramkumar Ramachandra <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d2c4631 commit dc267b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

git-am.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,8 @@ do
592592

593593
test -s "$dotest/patch" || {
594594
echo "Patch is empty. Was it split wrong?"
595+
echo "If you would prefer to skip this patch, instead run \"$cmdline --skip\"."
596+
echo "To restore the original branch and stop patching run \"$cmdline --abort\"."
595597
stop_here $this
596598
}
597599
rm -f "$dotest/original-commit"

0 commit comments

Comments
 (0)