Handle partial incomplete and line-ending munging diffs (resolves issue 633).

This commit is contained in:
Thomas Keller 2011-03-18 00:55:02 +01:00
parent be7725694e
commit a3dd1c45f3
6 changed files with 18 additions and 0 deletions

View 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

View 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;}}}}}

View 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

View 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;}}}}}