Skip to content

Add .mailmap so the history shows one author identity - #8

Merged
sahilkalgutkar merged 1 commit into
mainfrom
chore/mailmap
Sep 9, 2026
Merged

sahilkalgutkar merged 1 commit into
mainfrom
chore/mailmap

Conversation

@sahilkalgutkar

Copy link
Copy Markdown
Owner

The log carries three author strings for me:

  • sahilkalgutkar <kalgutkarsahil98@gmail.com> — the current one
  • Sahil Kalgutkar <kalgutkarsahil98@gmail.com> — an older display name on the same address
  • Sahil Kalgutkar <87792369+sahilkalgutkar@users.noreply.github.com> — the address GitHub stamps on the merge commit it writes whenever a PR is merged from the web

The third is not something I set; it is how GitHub attributes server-side merges. In this repo every commit carrying it is a merge commit.

.mailmap maps all three onto one identity for git shortlog, git log and git blame. It changes no commits and rewrites no history, so every SHA and every pull request link stays exactly as it is — which is the reason to do it this way rather than rewriting authors and force-pushing.

$ git shortlog -sne --all
    48	sahilkalgutkar <kalgutkarsahil98@gmail.com>

The log carries three author strings for me: the current one, an older commit
name of "Sahil Kalgutkar" on the same address, and the GitHub noreply address
that GitHub stamps on the merge commit it writes when a PR is merged from the
web.

This maps all three onto one identity for git shortlog, git log and git blame.
It changes no commits and rewrites no history, so every SHA and every pull
request link stays exactly as it is.
@codecov

codecov Bot commented Sep 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sahilkalgutkar
sahilkalgutkar merged commit d103193 into main Sep 9, 2026
3 checks passed
@sahilkalgutkar
sahilkalgutkar deleted the chore/mailmap branch September 9, 2026 03:01
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