diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-12-04 15:38:27 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-12-04 18:45:02 -0800 |
commit | 22db240dd1791b32e7f6d25a466c2835bdccb51e (patch) | |
tree | 5a3d5b0d6e6e328a7dbaa1c50560551faa643c76 /git-am.sh | |
parent | a20033796b312390ea8a50917bea623efd6fad97 (diff) | |
download | git-22db240dd1791b32e7f6d25a466c2835bdccb51e.tar.gz git-22db240dd1791b32e7f6d25a466c2835bdccb51e.tar.xz |
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: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-am.sh')
-rwxr-xr-x | git-am.sh | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 |