go-gitdiff icon indicating copy to clipboard operation
go-gitdiff copied to clipboard

Go library for parsing and applying patches created by Git

Results 5 go-gitdiff issues
Sort by recently updated
recently updated
newest added

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,...

applying

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...

enhancement
applying

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...

enhancement
parsing

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)...

enhancement
parsing

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...