]> git.ipfire.org Git - thirdparty/git.git/commit
send-email: expose header information to git-send-email's sendemail-validate hook
authorMichael Strawbridge <michael.strawbridge@amd.com>
Wed, 19 Apr 2023 20:27:03 +0000 (16:27 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 19 Apr 2023 21:19:09 +0000 (14:19 -0700)
commita8022c5f7b678189135b6caa3fadb3d8ec0c0d48
tree3d2d5787217c3096e3dcfb21e44ebccd715d2362
parent56adddaa06d376f3977ee91e8a769cd85439d21c
send-email: expose header information to git-send-email's sendemail-validate hook

To allow further flexibility in the Git hook, the SMTP header
information of the email which git-send-email intends to send, is now
passed as the 2nd argument to the sendemail-validate hook.

As an example, this can be useful for acting upon keywords in the
subject or specific email addresses.

Cc: Luben Tuikov <luben.tuikov@amd.com>
Cc: Junio C Hamano <gitster@pobox.com>
Cc: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Acked-by: Luben Tuikov <luben.tuikov@amd.com>
Signed-off-by: Michael Strawbridge <michael.strawbridge@amd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/githooks.txt
git-send-email.perl
t/t9001-send-email.sh