Skip to content

chore(identity): .mailmap resolves every past commit to Cato - #180

Merged
github-actions[bot] merged 1 commit into
mainfrom
chore/mailmap-cato
Sep 5, 2026
Merged

chore(identity): .mailmap resolves every past commit to Cato#180
github-actions[bot] merged 1 commit into
mainfrom
chore/mailmap-cato

Conversation

@catomean

@catomean catomean commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

This repo had no .mailmap, so git log and GitHub showed the raw author of every commit — and seven variants had accumulated: G, g-but, Mao Nakamoto, three noreply addresses, a personal gmail, and git's uninitialised default Your Name <your.email@example.com>.

A mailmap fixes the displayed author of every existing commit without rewriting a hash — the only proportionate option for history already merged and pushed.

Two kinds of rule, and the difference matters

Most variants match by commit email alone. But commits authored as G carry the canonical email, so an email-only rule cannot reach them — mailmap matches on the commit's email, and theirs is already the target. Those need a name <email> rule on both sides.

Verified, not assumed

before:  G · g-but · Mao Nakamoto · Your Name · Devin AI · dependabot
after:   288 Cato · 108 Devin AI · 4 dependabot

git log --use-mailmap --format='%aN' over the last 400 commits. Devin AI and dependabot are genuinely different authors and are correctly left alone.

Companion PRs: vitareba#93, fleetcrown, evig. orangecat's mailmap was already correct.

🤖 Generated with Claude Code

This repo had no .mailmap, so git log and GitHub showed the raw author of every
commit — and seven variants had accumulated: G, g-but, Mao Nakamoto, three
noreply addresses, a personal gmail, and git's uninitialised default
"Your Name <your.email@example.com>".

A mailmap fixes the displayed author of every existing commit without rewriting
a hash, which is the only proportionate option for history that is already
merged and pushed.

Two kinds of rule are needed. Most variants are matched by commit email alone.
But commits authored as "G" carry the CANONICAL email, so an email-only rule
cannot reach them — mailmap matches on the commit's email, and theirs is
already the target. Those need a name+email rule on both sides.

Verified rather than assumed, over the last 400 commits:

    before:  G, g-but, Mao Nakamoto, Your Name, Devin AI, dependabot
    after:   288 Cato · 108 Devin AI · 4 dependabot

Devin AI and dependabot are genuinely different authors and are left alone.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G2LBioUzJP4oBL9LeH9qAe
@github-actions
github-actions Bot merged commit 0c6cbf3 into main Sep 5, 2026
1 check passed
@github-actions
github-actions Bot deleted the chore/mailmap-cato branch September 5, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant