summaryrefslogtreecommitdiff
path: root/git-am.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2008-12-05 20:02:15 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-12-05 20:02:15 -0800
commitd8af75d76f224eb8311bc3815f36cf126d309277 (patch)
treec3ccda9401edc5df20f7158186ce78ff41746d6d /git-am.sh
parentgit-p4: Fix bug in p4Where method. (diff)
parentgit-am: rename apply_opt_extra file to apply-opt (diff)
downloadtgif-d8af75d76f224eb8311bc3815f36cf126d309277.tar.xz
Merge branch 'jc/am-options'
* jc/am-options: git-am: rename apply_opt_extra file to apply-opt Test that git-am does not lose -C/-p/--whitespace options git-am: propagate --3way options as well git-am: propagate -C<n>, -p<n> options as well git-am --whitespace: do not lose the command line option
Diffstat (limited to 'git-am.sh')
-rwxr-xr-xgit-am.sh15
1 files changed, 10 insertions, 5 deletions
diff --git a/git-am.sh b/git-am.sh
index aa602618e6..4b157fe5d5 100755
--- a/git-am.sh
+++ b/git-am.sh
@@ -247,10 +247,11 @@ else
exit 1
}
- # -s, -u, -k and --whitespace flags are kept for the
- # resuming session after a patch failure.
- # -3 and -i can and must be given when resuming.
- echo " $ws" >"$dotest/whitespace"
+ # -s, -u, -k, --whitespace, -3, -C and -p flags are kept
+ # for the resuming session after a patch failure.
+ # -i can and must be given when resuming.
+ echo " $git_apply_opt" >"$dotest/apply-opt"
+ echo "$threeway" >"$dotest/threeway"
echo "$sign" >"$dotest/sign"
echo "$utf8" >"$dotest/utf8"
echo "$keep" >"$dotest/keep"
@@ -283,7 +284,11 @@ if test "$(cat "$dotest/keep")" = t
then
keep=-k
fi
-ws=`cat "$dotest/whitespace"`
+if test "$(cat "$dotest/threeway")" = t
+then
+ threeway=t
+fi
+git_apply_opt=$(cat "$dotest/apply-opt")
if test "$(cat "$dotest/sign")" = t
then
SIGNOFF=`git var GIT_COMMITTER_IDENT | sed -e '