diff options
author | Siddharth Asthana <siddharthasthana31@gmail.com> | 2022-12-20 11:31:12 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-12-20 15:20:45 +0900 |
commit | 49050a043bf767d370e7288cb6cca0ca21f13404 (patch) | |
tree | d61bbc259d2655f6b22176c35bba41099c13f3b8 /commit.c | |
parent | 63bba4fdd86d80ef061c449daa97a981a9be0792 (diff) |
cat-file: add mailmap support to -s option
Even though the cat-file command with `-s` option does not complain when
`--use-mailmap` option is given, the latter option is ignored. Compute
the size of the object after replacing the idents and report it instead.
In order to make `-s` option honour the mailmap mechanism we have to
read the contents of the commit/tag object. Make use of the call to
`oid_object_info_extended()` to get the contents of the object and store
in `buf`. `buf` is later freed in the function.
Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: John Cai <johncai86@gmail.com>
Helped-by: Taylor Blau <me@ttaylorr.com>
Helped-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
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