Closed Bug 1436182 Opened 2 years ago Closed 2 years ago

Add .mailmap file to mozilla-central

Categories

(Developer Services :: General, task)

task
Not set

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Nika, Assigned: Nika)

Details

Attachments

(1 file)

Documentation about .mailmap: https://github.com/git/git/blob/5be1f00a9a701532232f57958efab4be8c959a29/Documentation/mailmap.txt

A file named .mailmap in the root of the git repository can be used to rewrite the names and emails of authors in the repository's history under some situations, such as when viewing `git blame`. This can be useful for a few cases:

1. Correcting names and emails of contributors from old commits (such as %netscape.com ones) to point to the modern email and name of that contributor.
2. Fixing typos in names and emails which exist in commit history.
3. Updating an individual's name when it changes, for example due to marriage or a transition.

Unfortunately, .mailmap files are not currently respected by hg, to my knowledge, and not all git commands respect them by default. (for example, git show needs the --mailmap flag to be passed to respect mailmap settings).

I've attached a patch to add a .mailmap file to the mozilla-central repository. This patch rewrites my deadname to instead reflect my current name and email, which ideally should help people using git blame to find the correct person when they come across older code I wrote.
MozReview-Commit-ID: 2reDFK87sj8
Assignee: nobody → nika
Attachment #8948797 - Flags: review+
Pushed by nika@thelayzells.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/fb9756553e9c
Add a .mailmap file to mozilla-central, r=ehsan
https://hg.mozilla.org/mozilla-central/rev/fb9756553e9c
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.