aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test/tst-rsrc
diff options
context:
space:
mode:
authorPatrick Hiesel <hiesel@google.com>2024-05-27 10:16:34 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2024-05-27 18:02:05 +0200
commitf5f33be8ca9b49c506d6f0ea296b65c5d649aaa4 (patch)
treeffd9f4271361503a237942203f1a79567d6a2820 /org.eclipse.jgit.test/tst-rsrc
parent4a6d04b25b211faf6498ce8ae9ee034be3566dc7 (diff)
downloadjgit-f5f33be8ca9b49c506d6f0ea296b65c5d649aaa4.tar.gz
jgit-f5f33be8ca9b49c506d6f0ea296b65c5d649aaa4.zip
PatchApplier: Add test for conflict markers on a deleted file
For deleted files, we want to keep erroring out even if conflicts are allowed for the apply patch logic. The resulting file would otherwise only consist of the patch. Change-Id: I18defa627ad2223a3a917d2b0ee4189396732533
Diffstat (limited to 'org.eclipse.jgit.test/tst-rsrc')
-rw-r--r--org.eclipse.jgit.test/tst-rsrc/org/eclipse/jgit/diff/allowconflict_file_deleted.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/org.eclipse.jgit.test/tst-rsrc/org/eclipse/jgit/diff/allowconflict_file_deleted.patch b/org.eclipse.jgit.test/tst-rsrc/org/eclipse/jgit/diff/allowconflict_file_deleted.patch
new file mode 100644
index 0000000000..c9655a5e6b
--- /dev/null
+++ b/org.eclipse.jgit.test/tst-rsrc/org/eclipse/jgit/diff/allowconflict_file_deleted.patch
@@ -0,0 +1,10 @@
+diff --git a/allowconflict_file_deleted b/allowconflict_file_deleted
+index 0000000..de98044
+--- a/allowconflict_file_deleted
++++ b/allowconflict_file_deleted
+@@ -3,4 +3,4 @@
+ line3
+-lineA
++lineB
+ line5
+ line6