]> git.ipfire.org Git - thirdparty/git.git/commit
send-email: copy "config_regxp" into git-send-email.perl
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 28 May 2021 09:23:44 +0000 (11:23 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 28 May 2021 09:38:07 +0000 (18:38 +0900)
commit2b110e9ba255120a2d78a5d2cccc842519e341f1
tree1c3e50196d7381a5c01f14eff02ae206ad772120
parent119974e9e7f3569400aa1950529f69431534a617
send-email: copy "config_regxp" into git-send-email.perl

The config_regexp() function was added in dd84e528a3 (git-send-email:
die if sendmail.* config is set, 2020-07-23) for use in
git-send-email, and it's the only in-tree user of it.

However, the consensus is that Git.pm is a public interface, so even
though it's a recently added function we can't change it. So let's
copy over a minimal version of it to git-send-email.perl itself. In a
subsequent commit it'll be changed further for our own use.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl