Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement the equivalent of git/mailinfo.c:cleanup_subject() (i.e., remove [PATCH] from title) #16

Closed
gwd opened this issue Sep 11, 2020 · 0 comments

Comments

@gwd
Copy link
Contributor

gwd commented Sep 11, 2020

Patches generated with git format-patch will have [PATCH] in the subject line; at the moment, this doesn't seem to be removed by ParsePatchHeader().

It might be a good idea to just implement the equivalent of https://github.com/git/git/blob/master/mailinfo.c 's cleanup_subject(), which seems to remove the following things at the beginning of the patch title:

  1. Re: and variations
  2. Whitespace (' ', '\t', and ':')
  3. Anything in between brackets.

I might take at implementing this if I have time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant