mirror of
https://github.com/bluekeyes/go-gitdiff
synced 2026-06-08 13:18:30 +00:00
7bd4e0bb0e
io.EOF was not properly accounted for when dealing with patches that are missing trailing newline characters.
12 lines
339 B
Diff
12 lines
339 B
Diff
diff --git a/gitdiff/testdata/apply/text_fragment_add_end_noeol.src b/gitdiff/testdata/apply/text_fragment_add_end_noeol.src
|
|
--- a/gitdiff/testdata/apply/text_fragment_add_end_noeol.src
|
|
+++ b/gitdiff/testdata/apply/text_fragment_add_end_noeol.src
|
|
@@ -1,3 +1,5 @@
|
|
line 1
|
|
line 2
|
|
-line 3
|
|
\ No newline at end of file
|
|
+line 3
|
|
+line 4
|
|
+line 5
|