diff options
author | Emma Brooks <me@pluvano.com> | 2020-04-08 06:31:38 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-04-08 07:37:18 +0200 |
commit | 19d097e3d73b4d3635bbe0e8735b2f059d59f29a (patch) | |
tree | 46a74286c5a82ccc9805a758ba449d07ad8a767f /log-tree.c | |
parent | Merge branch 'ds/default-pack-use-sparse-to-true' (diff) | |
download | git-19d097e3d73b4d3635bbe0e8735b2f059d59f29a.tar.xz git-19d097e3d73b4d3635bbe0e8735b2f059d59f29a.zip |
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>
Diffstat (limited to 'log-tree.c')
-rw-r--r-- | log-tree.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/log-tree.c b/log-tree.c index 897a90233e..0064788b25 100644 --- a/log-tree.c +++ b/log-tree.c @@ -693,6 +693,7 @@ void show_log(struct rev_info *opt) ctx.abbrev = opt->diffopt.abbrev; ctx.after_subject = extra_headers; ctx.preserve_subject = opt->preserve_subject; + ctx.encode_email_headers = opt->encode_email_headers; ctx.reflog_info = opt->reflog_info; ctx.fmt = opt->commit_format; ctx.mailmap = opt->mailmap; |