diff options
author | Emma Brooks <me@pluvano.com> | 2020-04-08 04:31:38 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-04-07 22:37:18 -0700 |
commit | 19d097e3d73b4d3635bbe0e8735b2f059d59f29a (patch) | |
tree | 46a74286c5a82ccc9805a758ba449d07ad8a767f /revision.h | |
parent | Merge branch 'ds/default-pack-use-sparse-to-true' (diff) | |
download | tgif-19d097e3d73b4d3635bbe0e8735b2f059d59f29a.tar.xz |
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 'revision.h')
-rw-r--r-- | revision.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/revision.h b/revision.h index 475f048fb6..0f962e4e17 100644 --- a/revision.h +++ b/revision.h @@ -203,7 +203,8 @@ struct rev_info { use_terminator:1, missing_newline:1, date_mode_explicit:1, - preserve_subject:1; + preserve_subject:1, + encode_email_headers:1; unsigned int disable_stdin:1; /* --show-linear-break */ unsigned int track_linear:1, |