]> git.ipfire.org Git - thirdparty/git.git/commit
format-patch: fix ignored encode_email_headers for cover letter
authorSimon Ser <contact@emersion.fr>
Thu, 9 Nov 2023 11:19:56 +0000 (11:19 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Nov 2023 02:04:11 +0000 (11:04 +0900)
commit219d54ae8c96bcb84d0216797af7572fff7199b8
tree2b320c85c36f3b63c917dda7254fe701f1823e1a
parentdadef801b365989099a9929e995589e455c51fed
format-patch: fix ignored encode_email_headers for cover letter

When writing the cover letter, the encode_email_headers option was
ignored. That is, UTF-8 subject lines and email addresses were
written out as-is, without any Q-encoding, even if
--encode-email-headers was passed on the command line.

This is due to encode_email_headers not being copied over from
struct rev_info to struct pretty_print_context. Fix that and add
a test.

Signed-off-by: Simon Ser <contact@emersion.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/log.c
t/t4014-format-patch.sh