skdb icon indicating copy to clipboard operation
skdb copied to clipboard

Git: add a mailmap

Open mbouaziz opened this issue 9 months ago • 4 comments

From man gitmailmap:

If the file .mailmap exists at the toplevel of the repository [...], it is used to map author and committer names and email addresses to canonical real names and email addresses.

As a consequence, it is also used to merge authors appearing with different names or e-mail addresses in the stats.

After this commit, git shortlog -se should show no duplicate entries for the same person.

mbouaziz avatar Apr 30 '25 09:04 mbouaziz

@skiplabsdaniel They all appear in the git history, anyone can see them.

mbouaziz avatar Apr 30 '25 09:04 mbouaziz

@mbouaziz Indeed, in an old history, But, I don't want them to appear here.

skiplabsdaniel avatar Apr 30 '25 09:04 skiplabsdaniel

In all histories since we haven't rewritten them during the history rewrite.

I'll remove them from this file though, they still appear to anyone running git shortlog -se for example

mbouaziz avatar Apr 30 '25 09:04 mbouaziz

Doesn't matter to me! (I tend to just use gmail everywhere and not change repo-to-repo)

bennostein avatar Apr 30 '25 13:04 bennostein

@jberdine I'll let each one manage their e-mail addresses, I only used what was already publicly available.

Cc @gregsexton

mbouaziz avatar May 12 '25 08:05 mbouaziz