this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Initial commit

Billy Keyes a445f1eb

+20
+20
README.md
··· 1 + # go-gitdiff 2 + 3 + A Go library for parsing and applying patches generated by `git diff`, `git 4 + show`, and `git format-patch`. 5 + 6 + ## Why another diff parser? 7 + 8 + Several libraries with similar functionality already exist, so why make 9 + another? 10 + 11 + 1. No other libraries I found support binary diffs, as generated with the 12 + `--binary` flag. This is the main reason for writing a new library. 13 + 14 + 2. Most other libraries only parse patches, so you need something else to apply 15 + them (and if they do support applies, it is only for text files.) 16 + 17 + 3. The goal is to eventually accept anything that `git apply` accepts, based on 18 + the code in [`apply.c`](https://github.com/git/git/blob/master/apply.c). 19 + 20 + 4. It seemed like a fun thing to write.