File tree Expand file tree Collapse file tree 1 file changed +19
-10
lines changed Expand file tree Collapse file tree 1 file changed +19
-10
lines changed Original file line number Diff line number Diff line change 52
52
HAS_HEAD=
53
53
fi
54
54
55
+ cmdline=" git am"
56
+ if test ' ' ! = " $interactive "
57
+ then
58
+ cmdline=" $cmdline -i"
59
+ fi
60
+ if test ' ' ! = " $threeway "
61
+ then
62
+ cmdline=" $cmdline -3"
63
+ fi
64
+
55
65
sq () {
56
66
git rev-parse --sq-quote " $@ "
57
67
}
@@ -66,15 +76,6 @@ stop_here_user_resolve () {
66
76
printf ' %s\n' " $resolvemsg "
67
77
stop_here $1
68
78
fi
69
- cmdline=" git am"
70
- if test ' ' ! = " $interactive "
71
- then
72
- cmdline=" $cmdline -i"
73
- fi
74
- if test ' ' ! = " $threeway "
75
- then
76
- cmdline=" $cmdline -3"
77
- fi
78
79
echo " When you have resolved this problem run \" $cmdline --resolved\" ."
79
80
echo " If you would prefer to skip this patch, instead run \" $cmdline --skip\" ."
80
81
echo " To restore the original branch and stop patching run \" $cmdline --abort\" ."
591
592
592
593
test -s " $dotest /patch" || {
593
594
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\" ."
594
597
stop_here $this
595
598
}
596
599
rm -f " $dotest /original-commit"
690
693
else
691
694
action=yes
692
695
fi
693
- FIRSTLINE=$( sed 1q " $dotest /final-commit" )
696
+
697
+ if test -f " $dotest /final-commit"
698
+ then
699
+ FIRSTLINE=$( sed 1q " $dotest /final-commit" )
700
+ else
701
+ FIRSTLINE=" "
702
+ fi
694
703
695
704
if test $action = skip
696
705
then
You can’t perform that action at this time.
0 commit comments