]> git.ipfire.org Git - thirdparty/git.git/commit
cat-file: add mailmap support
authorSiddharth Asthana <siddharthasthana31@gmail.com>
Mon, 18 Jul 2022 19:51:02 +0000 (01:21 +0530)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 Jul 2022 19:55:53 +0000 (12:55 -0700)
commitec031da9f97a2545601304b5ac1e93fee09425b4
treecde752cf39c6598a3322c42e1f38c4f4c71dbca7
parent66a8a95315edb3feba1190dcd89a208ae71bda61
cat-file: add mailmap support

git-cat-file is used by tools like GitLab to get commit tag contents
that are then displayed to users. This content which has author,
committer or tagger information, could benefit from passing through the
mailmap mechanism before being sent or displayed.

This patch adds --[no-]use-mailmap command line option to the git
cat-file command. It also adds --[no-]mailmap option as an alias to
--[no-]use-mailmap.

This patch also introduces new test cases to test the mailmap mechanism in
git cat-file command.

Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: John Cai <johncai86@gmail.com>
Helped-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Helped-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Siddharth Asthana <siddharthasthana31@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-cat-file.txt
builtin/cat-file.c
t/t4203-mailmap.sh