Merge branch 'rr/am-help'
* rr/am-help: git am: Remove stray error message from sed git am: Display some help text when patch is empty git am: Set cmdline globallymaint
commit
8b8063cef3
29
git-am.sh
29
git-am.sh
|
@ -52,6 +52,16 @@ else
|
||||||
HAS_HEAD=
|
HAS_HEAD=
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cmdline="git am"
|
||||||
|
if test '' != "$interactive"
|
||||||
|
then
|
||||||
|
cmdline="$cmdline -i"
|
||||||
|
fi
|
||||||
|
if test '' != "$threeway"
|
||||||
|
then
|
||||||
|
cmdline="$cmdline -3"
|
||||||
|
fi
|
||||||
|
|
||||||
sq () {
|
sq () {
|
||||||
git rev-parse --sq-quote "$@"
|
git rev-parse --sq-quote "$@"
|
||||||
}
|
}
|
||||||
|
@ -66,15 +76,6 @@ stop_here_user_resolve () {
|
||||||
printf '%s\n' "$resolvemsg"
|
printf '%s\n' "$resolvemsg"
|
||||||
stop_here $1
|
stop_here $1
|
||||||
fi
|
fi
|
||||||
cmdline="git am"
|
|
||||||
if test '' != "$interactive"
|
|
||||||
then
|
|
||||||
cmdline="$cmdline -i"
|
|
||||||
fi
|
|
||||||
if test '' != "$threeway"
|
|
||||||
then
|
|
||||||
cmdline="$cmdline -3"
|
|
||||||
fi
|
|
||||||
echo "When you have resolved this problem run \"$cmdline --resolved\"."
|
echo "When you have resolved this problem run \"$cmdline --resolved\"."
|
||||||
echo "If you would prefer to skip this patch, instead run \"$cmdline --skip\"."
|
echo "If you would prefer to skip this patch, instead run \"$cmdline --skip\"."
|
||||||
echo "To restore the original branch and stop patching run \"$cmdline --abort\"."
|
echo "To restore the original branch and stop patching run \"$cmdline --abort\"."
|
||||||
|
@ -591,6 +592,8 @@ do
|
||||||
|
|
||||||
test -s "$dotest/patch" || {
|
test -s "$dotest/patch" || {
|
||||||
echo "Patch is empty. Was it split wrong?"
|
echo "Patch is empty. Was it split wrong?"
|
||||||
|
echo "If you would prefer to skip this patch, instead run \"$cmdline --skip\"."
|
||||||
|
echo "To restore the original branch and stop patching run \"$cmdline --abort\"."
|
||||||
stop_here $this
|
stop_here $this
|
||||||
}
|
}
|
||||||
rm -f "$dotest/original-commit"
|
rm -f "$dotest/original-commit"
|
||||||
|
@ -690,7 +693,13 @@ do
|
||||||
else
|
else
|
||||||
action=yes
|
action=yes
|
||||||
fi
|
fi
|
||||||
FIRSTLINE=$(sed 1q "$dotest/final-commit")
|
|
||||||
|
if test -f "$dotest/final-commit"
|
||||||
|
then
|
||||||
|
FIRSTLINE=$(sed 1q "$dotest/final-commit")
|
||||||
|
else
|
||||||
|
FIRSTLINE=""
|
||||||
|
fi
|
||||||
|
|
||||||
if test $action = skip
|
if test $action = skip
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue