See "Proposal: Adding a toplevel .mailmap file" on llvm-dev:
https://lists.llvm.org/pipermail/llvm-dev/2021-May/150741.html
Details
- Reviewers
rengolin fhahn mstorsjo - Commits
- rG39b3c00ec33f: Add a toplevel .mailmap file
Diff Detail
Event Timeline
Can you add your aliases right off the bat? I have to say I was confused by the git manual, maybe I'm not the only one. Would be nice to have an example to follow...
I'll add it in a follow-up as soon as this is in; I'm sure there will be several examples in this file fairly quickly :)
Thanks! I'll let this sit for a few more days and land this Wednesday if nobody else comments :)
.mailmap | ||
---|---|---|
3 | Maybe one can mention that this also can be useful for just canonicalizing/merging various spellings of the name even if they use just one email address. |
.mailmap | ||
---|---|---|
3 | I was trying to say that with "mapping … email addresses and names to a single canonical one". Do you have a suggestion for how to make that more clear? Maybe we could add: For example, if you commit as `random.person@example.com` but sometimes use "Rañdom Person" and sometimes "Random Person" as name and you want the former to be your canonical name, add Rañdom Person <random.person@example.com> If you commit as both `random.person@example.com` and `ranp@example.com` and you want the former to be your canonical email address, add <random.person@example.com> <ranp@example.com> Combinations of both are possible too, see https://git-scm.com/docs/gitmailmap for format details. Would that help? Concrete change suggestions for the text that's here are also very welcome :) |
.mailmap | ||
---|---|---|
3 | That sounds very concrete and understandable to me, thanks! Yeah I didn't have any good suggestions - I found it hard to consisely explain what I meant in my previous comment :-) |
.mailmap | ||
---|---|---|
3 | added |
.mailmap | ||
---|---|---|
24 | Sorted - with which rule? :-) According to the email address only, or based on the first alphanumerical chars on the line (realname if set, otherwise email)? |
.mailmap | ||
---|---|---|
24 | Good question. I would've said "whatever :sort does" but I guess it's nice to keep entries for one person together? But it's already not sorted even with email-only entries, so maybe we should just remove this line *shrug* | |
24 | https://github.com/torvalds/linux/blob/master/.mailmap looks pretty tidy so I guess using that rule ("by first non-< char") would work? |
.mailmap | ||
---|---|---|
24 | Ok, that sounds like a decent rule. |
Maybe one can mention that this also can be useful for just canonicalizing/merging various spellings of the name even if they use just one email address.