]> git.ipfire.org Git - thirdparty/git.git/commit
send-email: teach git send-email option to translate aliases
authorJacob Keller <jacob.keller@gmail.com>
Wed, 14 Aug 2024 00:05:11 +0000 (17:05 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 17 Aug 2024 17:03:06 +0000 (10:03 -0700)
commitc038a6f1d748dd1062ffa91f7a8453c73f5bcf9f
tree2714a6bf636da4b91824202bf6f08812cf71868f
parentbbc04b0094621bdd6d1e60c1cd96c64d916d3339
send-email: teach git send-email option to translate aliases

git send-email has support for converting shorthand alias names to
canonical email addresses via the alias file. It supports a wide variety
of alias file formats based on popular email program file formats.

Other programs, such as b4, would like the ability to convert aliases in
the same way as git send-email without needing to re-implement the logic
for understanding the many file formats.

Teach git send-email a new option, --translate-aliases, which will
enable this functionality. Similar to --dump-aliases, this option works
like a new mode of operation for git send-email.

When run with --translate-aliases, git send-email reads from standard
input and converts any provided alias into its canonical name and email
according to the alias file. Each expanded name and address is printed
to standard output, one per line.

Signed-off-by: Jacob Keller <jacob.keller@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-send-email.txt
git-send-email.perl
t/t9001-send-email.sh