]> git.ipfire.org Git - thirdparty/git.git/commit - revision.c
format-patch: teach --no-encode-email-headers
authorEmma Brooks <me@pluvano.com>
Wed, 8 Apr 2020 04:31:38 +0000 (04:31 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 8 Apr 2020 05:37:18 +0000 (22:37 -0700)
commit19d097e3d73b4d3635bbe0e8735b2f059d59f29a
tree46a74286c5a82ccc9805a758ba449d07ad8a767f
parent9fadedd637b312089337d73c3ed8447e9f0aa775
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>
Documentation/config/format.txt
Documentation/git-format-patch.txt
builtin/log.c
log-tree.c
pretty.c
pretty.h
revision.c
revision.h
t/t4014-format-patch.sh