LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

git-check-mailmap

Resolve canonical author and committer identities

TLDR

Check mailmap entry
$ git check-mailmap "[Name] <email@example.com>"
copy
Map multiple entries
$ git check-mailmap "[Name1] <email1>" "[Name2] <email2>"
copy
Read from stdin
$ echo "[Name] <email>" | git check-mailmap --stdin
copy

SYNOPSIS

git check-mailmap [options] contact

DESCRIPTION

git check-mailmap looks up canonical names and email addresses using the mailmap file. It translates author/committer identities to their canonical forms as configured in .mailmap.The mailmap feature consolidates identity variations (typos, name changes, multiple emails) to canonical forms. This command shows how identities will be mapped in git log and shortlog output.This is primarily a debugging tool for verifying that .mailmap entries are correctly resolving contributor identities before relying on them in reports or statistics.

PARAMETERS

CONTACT

Contact in "Name <email>" format.
--stdin
Read contacts from stdin.
--mailmap-file FILE
Also read the specified mailmap file, taking precedence over the repository's configured mailmap.
--mailmap-blob BLOB
Like --mailmap-file, but read the mailmap from a blob in the repository.
--help
Display help information.

CONFIGURATION

.mailmap

Maps author and committer names/emails to canonical forms, consolidating identity variations in logs and statistics.

INSTALL

sudo apt install git
copy
sudo dnf install git
copy
sudo pacman -S git
copy
sudo apk add git
copy
sudo zypper install git
copy
brew install git
copy
nix profile install nixpkgs#git
copy

CAVEATS

Requires .mailmap file in repository. Input must be proper "Name <email>" format. Used mainly for debugging.

HISTORY

git check-mailmap was added to Git to support debugging mailmap configurations, complementing git shortlog -e functionality.

SEE ALSO

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid