Skip to content

Commit 0896f01

Browse files
committed
Clarify that we only support GNU diff
In issue #57, it was reported that the library could not apply some patches generated by BSD `diff` because of the way that variant reports changes in files without trailing newlines. Since the library behavior matches Git, I don't consider this a bug, but update the README to mention that the support for standard unified diffs is only for the GNU variant of the `diff` tool.
1 parent 823d31d commit 0896f01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
A Go library for parsing and applying patches generated by `git diff`, `git
66
show`, and `git format-patch`. It can also parse and apply unified diffs
7-
generated by the standard `diff` tool.
7+
generated by the standard GNU `diff` tool.
88

99
It supports standard line-oriented text patches and Git binary patches, and
1010
aims to parse anything accepted by the `git apply` command.

0 commit comments

Comments
 (0)