Re: How do I make git-format-patch reject 8-bit encodings?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 22, 2011, 00:19 UTC
- Message-ID
- <7vbp24hqez.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <4D62E315.7040506@freescale.com>
Timur Tabi <timur@freescale.com> writes:
Show 7 quoted lines
> Is there any way to get git-format-patch to refuse to create a patch that has > 8-bit characters in it? That is, if a given commit somehow has an 8-bit > character (e.g. utf-encoded), then I want git-format-patch to refuse to create a > patch for that commit. > > Also, how can I do the same thing with git-send-email? That is, if the patch > requires an 8-bit encoding, how do I get it to refuse to send the patch?
Feels like an X-Y problem, but wouldn't it be an option to let format-patch write into individual files, check these files and reject ones that are not 8-bit clean, and then send the result out via send-email? You should be proofreading the format-patch output to catch and fix typos before hading them to send-email anyway, so the above would be the natural thing to do.