go-gitdiff
go-gitdiff copied to clipboard
Go library for parsing and applying patches created by Git
After coming back to it to add some features, I'm not happy with the `LineReaderAt` interface and to some extent the use of `io.ReaderAt`. This is mostly for text patches,...
Currently, an `Applier` can only apply patches in "strict" mode, where line numbers and context lines must match exactly. Git supports a more flexible model when applying patches that allow...
Looking through [`decode_header`](https://github.com/git/git/blob/master/mailinfo.c#L468) in the Git source, it looks like there are several possible encodings. Currently, we only support quoted-printable UTF-8 and ignore anything else (implemented in #25.) To support...
If a patch is malformed or a `File` is created directly, various fields may disagree. Add a validate function that checks for these types of issues so clients (e.g. appliers)...
Thank you for this useful tool! I'm new to working with patches and have been experimenting with this tool. I'm writing a script that takes a patch as a string...