diff options
author | Siddharth Asthana <siddharthasthana31@gmail.com> | 2022-07-19 01:21:02 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-07-18 12:55:53 -0700 |
commit | ec031da9f97a2545601304b5ac1e93fee09425b4 (patch) | |
tree | cde752cf39c6598a3322c42e1f38c4f4c71dbca7 /commit.c | |
parent | 66a8a95315edb3feba1190dcd89a208ae71bda61 (diff) |
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>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions