]> git.ipfire.org Git - thirdparty/git.git/commit
send-email: add --header-cmd, --no-header-cmd options
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>
Mon, 1 May 2023 14:38:47 +0000 (10:38 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 May 2023 15:55:52 +0000 (08:55 -0700)
commitba92106e93c66e41af5180ac1b6ad0f959f72bb4
tree049c19e8aba8a8b4b310ce002acd36fd3ca26b2c
parent03056ce796e3a0cde71b8e4776d3453364cfda78
send-email: add --header-cmd, --no-header-cmd options

Sometimes, adding a header different than CC or TO is desirable; for
example, when using Debbugs, it is best to use 'X-Debbugs-Cc' headers
to keep people in CC; this is an example use case enabled by the new
'--header-cmd' option.

The header unfolding logic is extracted to a subroutine so that it can
be reused; a test is added for coverage.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/sendemail.txt
Documentation/git-send-email.txt
git-send-email.perl
t/t9001-send-email.sh