mirror of
https://github.com/bluekeyes/go-gitdiff
synced 2026-06-08 13:18:30 +00:00
726 B
726 B
go-gitdiff
A Go library for parsing and applying patches generated by git diff, git show, and git format-patch.
Why another diff parser?
Several libraries with similar functionality already exist, so why make another?
-
No other libraries I found support binary diffs, as generated with the
--binaryflag. This is the main reason for writing a new library. -
Most other libraries only parse patches, so you need something else to apply them (and if they do support applies, it is only for text files.)
-
The goal is to eventually accept anything that
git applyaccepts, based on the code inapply.c. -
It seemed like a fun thing to write.