From 19d097e3d73b4d3635bbe0e8735b2f059d59f29a Mon Sep 17 00:00:00 2001 From: Emma Brooks Date: Wed, 8 Apr 2020 04:31:38 +0000 Subject: format-patch: teach --no-encode-email-headers When commit subjects or authors have non-ASCII characters, git format-patch Q-encodes them so they can be safely sent over email. However, if the patch transfer method is something other than email (web review tools, sneakernet), this only serves to make the patch metadata harder to read without first applying it (unless you can decode RFC 2047 in your head). git am as well as some email software supports non-Q-encoded mail as described in RFC 6531. Add --[no-]encode-email-headers and format.encodeEmailHeaders to let the user control this behavior. Signed-off-by: Emma Brooks Signed-off-by: Junio C Hamano --- pretty.h | 1 + 1 file changed, 1 insertion(+) (limited to 'pretty.h') diff --git a/pretty.h b/pretty.h index 4ad1fc31ff..071f2fb8e4 100644 --- a/pretty.h +++ b/pretty.h @@ -43,6 +43,7 @@ struct pretty_print_context { struct string_list *mailmap; int color; struct ident_split *from_ident; + unsigned encode_email_headers:1; /* * Fields below here are manipulated internally by pp_* functions and -- cgit v1.2.3