summaryrefslogtreecommitdiff
path: root/t/t4252/am-test-2-1
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-12-05 01:08:48 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-12-05 02:45:02 (GMT)
commitfe6beab7e80565dac81125aa82521f7673905ebc (patch)
treebc814ba85441b34b519ec6a0631b37e51ea7de50 /t/t4252/am-test-2-1
parent22db240dd1791b32e7f6d25a466c2835bdccb51e (diff)
downloadgit-fe6beab7e80565dac81125aa82521f7673905ebc.zip
git-fe6beab7e80565dac81125aa82521f7673905ebc.tar.gz
git-fe6beab7e80565dac81125aa82521f7673905ebc.tar.bz2
Test that git-am does not lose -C/-p/--whitespace options
These tests make sure that "git am" does not lose command line options specified when it was started, after it is interrupted by a patch that does not apply earlier in the series. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4252/am-test-2-1')
-rw-r--r--t/t4252/am-test-2-119
1 files changed, 19 insertions, 0 deletions
diff --git a/t/t4252/am-test-2-1 b/t/t4252/am-test-2-1
new file mode 100644
index 0000000..feda94a
--- /dev/null
+++ b/t/t4252/am-test-2-1
@@ -0,0 +1,19 @@
+From: A U Thor <au.thor@example.com>
+Date: Thu Dec 4 16:00:00 2008 -0800
+Subject: Three
+
+Application of this should be rejected even with -C1 because the
+preimage line in the context does not match.
+
+diff --git i/file-1 w/file-1
+index 06e567b..10f8342 100644
+--- i/file-1
++++ w/file-1
+@@ -1,6 +1,6 @@
+ 1
+ 2
+-Tres
++Three
+ 4
+ 5
+ 6