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 <me@pluvano.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
9fadedd637
commit
19d097e3d7
@ -57,6 +57,11 @@ format.suffix::
|
||||
`.patch`. Use this variable to change that suffix (make sure to
|
||||
include the dot if you want it).
|
||||
|
||||
format.encodeEmailHeaders::
|
||||
Encode email headers that have non-ASCII characters with
|
||||
"Q-encoding" (described in RFC 2047) for email transmission.
|
||||
Defaults to true.
|
||||
|
||||
format.pretty::
|
||||
The default pretty format for log/show/whatchanged command,
|
||||
See linkgit:git-log[1], linkgit:git-show[1],
|
||||
|
Reference in New Issue
Block a user