Hi Everyone! I am working as a GSoC mentee with GitLab organization. My projects aims to add mailmap support in GitLab. The patch for adding mailmap support in git cat-file is already merged. So, using git cat-file `--use-mailmap` with either `-s` and `--batch-check option`, like the following is allowed: * git cat-file --use-mailmap -s <commit/tag object sha> * git cat-file --use-mailmap --batch-check The current implementation will return the same object size irrespective of the mailmap option, which is not as useful as it could be. When we use the mailmap mechanism to replace idents, the size of the object can change `-s` and `--batch-check` options would be more useful if they show the size of the changed object. This patch series implemets that. In this patch series we didn't want to change that how '%(objectsize)` always show the size of the original object even when `--use-mailmap` is set because first we are going to unify how the formats for git cat-file and other commands work. And second existing formats like the "pretty formats" used by `git log` have different options for fields respecting mailmap or not respecting it (%an is for author name while %aN is for author name respecting mailmap). I would like to thank my mentors, Christian Couder and John Cai, for all of their help! Looking forward to the reviews! = Patch Organization - The first patch improves the documentation `--batch`, `--batch-check` and `--batch-command` options by adding they can be combined with `--use-mailmap` options. - The second patch makes -s option to return updated size of the <commit/tag> object, when combined with `--use-mailmap` options, after replacing the idents using the mailmap mechanism. - The third patch makes --batch-check option to return updated size of the <commit/tag> object, when combined with `--use-mailmap` options, after replacing the idents using the mailmap mechanism. Siddharth Asthana (3): doc/cat-file: allow --use-mailmap for --batch options cat-file: add mailmap support to -s option cat-file: add mailmap support to --batch-check option Documentation/git-cat-file.txt | 26 ++++++++++++++------------ builtin/cat-file.c | 26 ++++++++++++++++++++++++++ t/t4203-mailmap.sh | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+), 12 deletions(-) -- 2.38.0.rc0.3.g53c2677cac