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.
9 lines
359 B
Diff
9 lines
359 B
Diff
diff --git a/gitdiff/testdata/apply/text_fragment_change_single_noeol.src b/gitdiff/testdata/apply/text_fragment_change_single_noeol.src
|
|
--- a/gitdiff/testdata/apply/text_fragment_change_single_noeol.src
|
|
+++ b/gitdiff/testdata/apply/text_fragment_change_single_noeol.src
|
|
@@ -1 +1 @@
|
|
-line 1
|
|
\ No newline at end of file
|
|
+new line a
|
|
\ No newline at end of file
|