提交 22db240d 编写于 作者: J Junio C Hamano

git-am: propagate --3way options as well

The reasoning is the same as the previous patch, where we made -C<n>
and -p<n> propagate across a failure.
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 a2003379
......@@ -247,10 +247,11 @@ else
exit 1
}
# -s, -u, -k, --whitespace, -C and -p flags are kept
# -s, -u, -k, --whitespace, -3, -C and -p flags are kept
# for the resuming session after a patch failure.
# -3 and -i can and must be given when resuming.
# -i can and must be given when resuming.
echo " $git_apply_opt" >"$dotest/apply_opt_extra"
echo "$threeway" >"$dotest/threeway"
echo "$sign" >"$dotest/sign"
echo "$utf8" >"$dotest/utf8"
echo "$keep" >"$dotest/keep"
......@@ -283,6 +284,10 @@ if test "$(cat "$dotest/keep")" = t
then
keep=-k
fi
if test "$(cat "$dotest/threeway")" = t
then
threeway=t
fi
git_apply_opt=$(cat "$dotest/apply_opt_extra")
if test "$(cat "$dotest/sign")" = t
then
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册