]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t4252/am-test-4-2
Test that git-am does not lose -C/-p/--whitespace options
[thirdparty/git.git] / t / t4252 / am-test-4-2
diff --git a/t/t4252/am-test-4-2 b/t/t4252/am-test-4-2
new file mode 100644 (file)
index 0000000..0e69bfa
--- /dev/null
@@ -0,0 +1,22 @@
+From: A U Thor <au.thor@example.com>
+Date: Thu Dec 4 16:00:00 2008 -0800
+Subject: Six
+
+Applying this patch with -C1 -p2 should be successful even though
+the patch is against a wrong level and the first context line does
+not match.
+
+diff --git i/junk/file-2 w/junk/file-2
+index 06e567b..b6f3a16 100644
+--- i/junk/file-2
++++ w/junk/file-2
+@@ -1,7 +1,7 @@
+ One
+ 2
+-3
++Three
+ 4
+ 5
+-6
++Six
+ 7