How do I check the syntax of a Git mailmap file after adding/removing records? I want to make sure each line represents a valid mapping and not some garbage.
You can compare the (sorted) list of the repo's authors with / without .mailmap with
git log --all --pretty=format:"%aN %aE" | sort -u
and
git log --all --pretty=format:"%an %ae" | sort -u
The first list should be taking your .mailmap into account and transform names/e-mails (provided you've set your config right with git config --global log.mailmap true), while the other uses raw commit data.
You can compare the (sorted) list of the repo's authors with / without
.mailmapwithand
The first list should be taking your
.mailmapinto account and transform names/e-mails (provided you've set your config right withgit config --global log.mailmap true), while the other uses raw commit data.