Releases: bluekeyes/go-gitdiff
Releases · bluekeyes/go-gitdiff
Release list
v0.9.0
API Breaks
- Remove the
BinaryFragment.Datafield and replace it withBinaryFragment.RawData, which contains the decoded but still compressed data from the fragment. Clients should use theio.Readerreturned by the newBinaryFragment.Data()method to access the uncompressed data. (#76) Apply()andBinaryApplier.ApplyFragment()enforce a default maximum binary fragment size of 100 MiB. Clients may adjust or disable this limit by passing theWithMaxBinaryFragmentBytesoption to their apply calls. (#77)
Improvements
- Short source files are reported as conflicts instead of EOF errors during applies (#63)
- Clients can limit the size of binary fragments during applies using the
WithMaxBinaryFragmentBytesoption (#77) BinaryFragment.String()returns the same content lines as were originally parsed (assuming normalized whitespace) instead of an equivalent encoding that parsed to the same value but was not the same text (#76)
Fixes
v0.8.1
v0.8.0
v0.7.4
v0.7.3
Improvements
- Accept invalid (according to RFC 5322) email addresses in
From:lines of mail-formatted patches (#44) - More closely follow Git's logic when parsing identities with
ParsePatchIdentity(#44)- Extract email addresses even when they do not appear in angle brackets
- Consider content that appears after the email address as part of the name
- Unquote escaped characters in quoted strings and RFC 5322 comments
- Normalize runs of white space in names to single space characters
v0.7.2
v0.7.1
v0.7.0
API Breaks
- Remove the
Appliertype and replace it withTextApplierandBinaryApplier. This does not impact clients that only use the top-levelApplyfunction (#32).
Improvements
v0.6.1
v0.6.0
API Breaks
- Improve the behavior of the
LineReaderAtinterface when the final line does not have a newline character. This change is only relevant for clients that defineLineReaderAtimplementations and should not affect most users of the library. If you use a customLineReaderAtimplementation, please review the documentation and update your implementation to avoid errors (#27).
Fixes
- Fix apply errors (unexpected EOF) with files that are multiples of 1024 bytes and have no final newline (#27).