From: Junio C Hamano Date: Tue, 22 Feb 2011 00:19:16 GMT Subject: Re: How do I make git-format-patch reject 8-bit encodings? Message-ID: <7vbp24hqez.fsf@alter.siamese.dyndns.org> In-Reply-To: <4D62E315.7040506@freescale.com> Timur Tabi writes: > 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.