Releases: bluekeyes/go-gitdiff
Releases · bluekeyes/go-gitdiff
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
Applier
type and replace it withTextApplier
andBinaryApplier
. This does not impact clients that only use the top-levelApply
function (#32).
Improvements
v0.6.1
v0.6.0
API Breaks
- Improve the behavior of the
LineReaderAt
interface when the final line does not have a newline character. This change is only relevant for clients that defineLineReaderAt
implementations and should not affect most users of the library. If you use a customLineReaderAt
implementation, 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).
v0.5.2
v0.5.1
v0.5.0
Improvements
- Remove email decoration (
[PATCH]
,re:
, etc) from patch titles inParsePatchHeader
(#17). Any content removed in this way is stored in theSubjectPrefix
field ofPatchHeader
. - Remove email trailers (content after a
---
line) from patch bodies inParsePatchHeader
(#19). Any content removed in this way is stored in theBodyAppendix
field ofPatchHeader
.