Handle partial incomplete and line-ending munging diffs (resolves issue 633).
This commit is contained in:
parent
be7725694e
commit
a3dd1c45f3
8
test/data/IDF_DiffTest/test-16-git-newline-removed.diff
Normal file
8
test/data/IDF_DiffTest/test-16-git-newline-removed.diff
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
diff --git a/foo b/foo
|
||||||
|
index a86c18f..71ccdd0 100644
|
||||||
|
--- a/foo
|
||||||
|
+++ b/foo
|
||||||
|
@@ -1 +1 @@
|
||||||
|
-This is foo
|
||||||
|
+This is foo
|
||||||
|
\ No newline at end of file
|
@ -0,0 +1 @@
|
|||||||
|
a:1:{s:3:"foo";a:2:{s:6:"chunks";a:1:{i:0;a:2:{i:0;a:3:{i:0;s:1:"1";i:1;s:0:"";i:2;s:11:"This is foo";}i:1;a:3:{i:0;s:0:"";i:1;s:1:"1";i:2;s:11:"This is foo";}}}s:10:"chunks_def";a:1:{i:0;a:2:{i:0;a:2:{i:0;s:1:"1";i:1;i:1;}i:1;a:2:{i:0;s:1:"1";i:1;i:1;}}}}}
|
8
test/data/IDF_DiffTest/test-17-git-newline-added.diff
Normal file
8
test/data/IDF_DiffTest/test-17-git-newline-added.diff
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
diff --git a/foo b/foo
|
||||||
|
index 71ccdd0..a86c18f 100644
|
||||||
|
--- a/foo
|
||||||
|
+++ b/foo
|
||||||
|
@@ -1 +1 @@
|
||||||
|
-This is foo
|
||||||
|
\ No newline at end of file
|
||||||
|
+This is foo
|
@ -0,0 +1 @@
|
|||||||
|
a:1:{s:3:"foo";a:2:{s:6:"chunks";a:1:{i:0;a:2:{i:0;a:3:{i:0;s:1:"1";i:1;s:0:"";i:2;s:11:"This is foo";}i:1;a:3:{i:0;s:0:"";i:1;s:1:"1";i:2;s:11:"This is foo";}}}s:10:"chunks_def";a:1:{i:0;a:2:{i:0;a:2:{i:0;s:1:"1";i:1;i:1;}i:1;a:2:{i:0;s:1:"1";i:1;i:1;}}}}}
|
Loading…
Reference in New Issue
Block a user