LibraLibra
LibraLibra
DocsBlogLibra
Getting Started
Architecture
Design
Commands
libra addlibra agentlibra alternateslibra applylibra archivelibra authlibra automationlibra bisectlibra blamelibra branchlibra bundlelibra cachelibra cat-filelibra check-attrlibra check-ignorelibra check-mailmaplibra checkoutlibra cherry-picklibra cleanlibra clonelibra cloudlibra code-controllibra codelibra commit-treelibra commitlibra completionslibra configlibra credentiallibra depslibra describelibra diff-fileslibra diff-indexlibra diff-treelibra difflibra dirtylibra fast-exportlibra fast-importlibra fetchlibra filelibra for-each-reflibra format-patchlibra fscklibra gclibra graphlibra greplibra hash-objectlibra hookslibra hydratelibra index-packlibra initlibra investigatelibra layerlibra lfslibra loglibra logfilelibra loginlibra logoutlibra ls-fileslibra ls-remotelibra ls-treelibra maintenancelibra medialibra merge-baselibra merge-filelibra mergelibra metadatalibra mvlibra noteslibra oplibra openlibra pack-objectslibra packagelibra prunelibra publishlibra pulllibra pushlibra read-treelibra rebaselibra refloglibra remotelibra repacklibra replacelibra rererelibra resetlibra restorelibra rev-listlibra rev-parselibra revertlibra reviewlibra revisionlibra rmlibra sandboxlibra servicelibra shortloglibra show-reflibra showlibra sparse-viewlibra stashlibra statslibra statuslibra switchlibra symbolic-reflibra taglibra update-indexlibra update-reflibra usagelibra verify-packlibra whoamilibra worktreelibra write-tree
API Reference
Policy
Commands

libra check-mailmap

Command reference for `libra check-mailmap`

Resolve Name <email> contacts through the repository .mailmap — a focused subset of git check-mailmap.

Synopsis

libra check-mailmap <contact>...
libra check-mailmap --stdin

Description

For each Name <email> contact (given as arguments or, with --stdin, one per line on stdin), check-mailmap looks it up in the worktree's .mailmap and prints the canonical Name <email>. A contact with no .mailmap match is printed unchanged.

.mailmap lines take the usual Git forms:

Proper Name <[email protected]>
<[email protected]> <[email protected]>
Proper Name <[email protected]> <[email protected]>
Proper Name <[email protected]> Commit Name <[email protected]>

A (name, email) rule (with a commit name) takes precedence over an email-only rule for the same email, matching Git. Comments (#) and blank lines are ignored.

Options

OptionDescriptionExample
<contact>...Contacts to resolve, each Name <email>.libra check-mailmap 'Bob <bob@old>'
--stdinRead contacts (one per line) from stdin.… | libra check-mailmap --stdin
--json / --machineStructured output: { contacts: [...] }.libra --json check-mailmap 'B <b@x>'

Exit codes

CodeMeaning
0Resolved contacts were printed.
128Not inside a repository, no contacts given, or a contact missing <email>.

Examples

echo 'Old Name <[email protected]>' | libra check-mailmap --stdin
libra check-mailmap 'Old Name <[email protected]>' 'Other <[email protected]>'

Comparison with Git

TaskLibraGit
Resolve a contactlibra check-mailmap '<c>'git check-mailmap '<c>'
From stdinlibra check-mailmap --stdingit check-mailmap --stdin

Differences and deferred features: only the worktree .mailmap is read (mailmap.file / mailmap.blob config not yet honoured), and the resolver is not yet wired into log / blame author display — that integration is a documented follow-up.

libra check-ignore

Command reference for `libra check-ignore`

libra checkout

Command reference for `libra checkout`

On this page

SynopsisDescriptionOptionsExit codesExamplesComparison with Git