Files
bluekeyes-go-gitdiff/gitdiff
George Dunlap 379b893435 Remove email decorations from patch titles (#17)
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>
2020-09-15 20:25:25 -07:00
..
2020-01-25 16:57:23 -08:00