mirror of
https://github.com/bluekeyes/go-gitdiff
synced 2026-06-08 13:18:30 +00:00
379b893435
Primarily to get rid of [PATCH] at the front, but while we're here just be generally compatible with `git am`: * Remove `re` and variations * Remove whitespace * Remove anything in brackets But only at the very beginning of the subject. Store anything removed in this way in PatchHeader.SubjectPrefix. Inspired by https://github.com/git/git/blob/master/mailinfo.c:cleanup_subject() Signed-off-by: George Dunlap <george.dunlap@citrix.com> Co-authored-by: George Dunlap <george.dunlap@citrix.com>