Skip to contentSkip to conversation

mailmap: Remove PhilMD redirect entries

PATCH In review Philippe Mathieu-Daudé 3 participants 4 messages May 20 – May 21

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mailmap: Remove PhilMD redirect entries

Our ./scripts/get_maintainer.pl uses git .mailmap as a fallback:

  $ ./scripts/get_maintainer.pl -h
  usage: ./scripts/get_maintainer.pl [options] patchfile
         ./scripts/get_maintainer.pl [options] -f file|directory

--git-fallback => use git when no exact MAINTAINERS pattern (default: 1) --git-since => git history to use (default: 1-year-ago) --mailmap => use .mailmap file (default: 1)
...

  Default options:
    [--email --nogit --git-fallback --m --r --n --l --multiline
     --pattern-depth=0 --remove-duplicates --rolestats]

(see the '--git-fallback' used as default option).

Per gitmailmap(5) man page:

... the file .mailmap [...] is used to map author and committer names and email addresses to canonical real names and email addresses.

I added my entries in the "replace old addresses by a more recent one" section for this script use case, but we have been doing a good cleanup at having all files covered in MAINTAINERS, so with retrospective these entries aren't needed anymore (besides, using them retroactively credits all my contributions to the latest employer).

Simply remove my mappings of that "old -> recent" section.

---
 .mailmap | 3 ---
 1 file changed, 3 deletions(-)
.mailmap +0 -3
index ce569d83f4a..82ff20b8ddb 100644
@@ -104,9 +104,6 @@ Paul Burton <[email protected]> <[email protected]>
 Paul Burton <[email protected]> <[email protected]>
 Paul Burton <[email protected]> <[email protected]>
 Paul Burton <[email protected]> <[email protected]>
-Philippe Mathieu-Daudé <[email protected]> <[email protected]>
-Philippe Mathieu-Daudé <[email protected]> <[email protected]>
-Philippe Mathieu-Daudé <[email protected]> <[email protected]>
 Pierrick Bouvier <[email protected]> <[email protected]>
 Roman Bolshakov <[email protected]> <[email protected]>
 Sriram Yagnaraman <[email protected]> <[email protected]>
Signature · 1 line
2.53.0
#1 lore raw
Quoted 24 lines · Philippe Mathieu-Daudé

Our ./scripts/get_maintainer.pl uses git .mailmap as a fallback:

  $ ./scripts/get_maintainer.pl -h
  usage: ./scripts/get_maintainer.pl [options] patchfile
         ./scripts/get_maintainer.pl [options] -f file|directory

--git-fallback => use git when no exact MAINTAINERS pattern (default: 1) --git-since => git history to use (default: 1-year-ago) --mailmap => use .mailmap file (default: 1)
...

  Default options:
    [--email --nogit --git-fallback --m --r --n --l --multiline
     --pattern-depth=0 --remove-duplicates --rolestats]

(see the '--git-fallback' used as default option).

Per gitmailmap(5) man page:

... the file .mailmap [...] is used to map author and committer names and email addresses to canonical real names and email addresses.

Quoted 7 lines

I added my entries in the "replace old addresses by a more recent one" section for this script use case, but we have been doing a good cleanup at having all files covered in MAINTAINERS, so with retrospective these entries aren't needed anymore (besides, using them retroactively credits all my contributions to the latest employer).

Hey Philippe,

As I posted here
https://lore.kernel.org/qemu-devel/[email protected]/T/#t

Quoted 2 lines

People who wish to use git log for employer attribution reasons must use --no-mailmap.

mailmap is for updating names/emails, not attribution. I do not think your patch is necessary.

Quoted 27 lines

Simply remove my mappings of that "old -> recent" section.

---
 .mailmap | 3 ---
 1 file changed, 3 deletions(-)
.mailmap +0 -4
index ce569d83f4a..82ff20b8ddb 100644
@@ -104,9 +104,6 @@ Paul Burton <[email protected]> <[email protected]>
 Paul Burton <[email protected]> <[email protected]>
 Paul Burton <[email protected]> <[email protected]>
 Paul Burton <[email protected]> <[email protected]>
-Philippe Mathieu-Daudé <[email protected]> <[email protected]>
-Philippe Mathieu-Daudé <[email protected]> <[email protected]>
-Philippe Mathieu-Daudé <[email protected]> <[email protected]>
 Pierrick Bouvier <[email protected]> <[email protected]>
 Roman Bolshakov <[email protected]> <[email protected]>
 Sriram Yagnaraman <[email protected]> <[email protected]>
--

2.53.0

Signature · 2 lines
Manos Pitsidianakis
Emulation and Virtualization Engineer at Linaro Ltd
#2 lore raw
Quoted 37 lines · Manos Pitsidianakis
Quoted 24 lines · Philippe Mathieu-Daudé

Our ./scripts/get_maintainer.pl uses git .mailmap as a fallback:

   $ ./scripts/get_maintainer.pl -h
   usage: ./scripts/get_maintainer.pl [options] patchfile
          ./scripts/get_maintainer.pl [options] -f file|directory

--git-fallback => use git when no exact MAINTAINERS pattern (default: 1) --git-since => git history to use (default: 1-year-ago) --mailmap => use .mailmap file (default: 1)
...

   Default options:
     [--email --nogit --git-fallback --m --r --n --l --multiline
      --pattern-depth=0 --remove-duplicates --rolestats]

(see the '--git-fallback' used as default option).

Per gitmailmap(5) man page:

... the file .mailmap [...] is used to map author and committer names and email addresses to canonical real names and email addresses.

Quoted 7 lines

I added my entries in the "replace old addresses by a more recent one" section for this script use case, but we have been doing a good cleanup at having all files covered in MAINTAINERS, so with retrospective these entries aren't needed anymore (besides, using them retroactively credits all my contributions to the latest employer).

Hey Philippe,

Quoted 8 lines

As I posted here
https://lore.kernel.org/qemu-devel/[email protected]/T/#t

Quoted 2 lines

People who wish to use git log for employer attribution reasons must use --no-mailmap.

mailmap is for updating names/emails, not attribution. I do not think your patch is necessary.

Great, thank you for mentioning the --no-mailmap option.

Markus, Alex, does that option work for you?

Quoted 29 lines
Quoted 28 lines

Simply remove my mappings of that "old -> recent" section.

---
  .mailmap | 3 ---
  1 file changed, 3 deletions(-)
.mailmap +0 -4
index ce569d83f4a..82ff20b8ddb 100644
@@ -104,9 +104,6 @@ Paul Burton <[email protected]> <[email protected]>
  Paul Burton <[email protected]> <[email protected]>
  Paul Burton <[email protected]> <[email protected]>
  Paul Burton <[email protected]> <[email protected]>
-Philippe Mathieu-Daudé <[email protected]> <[email protected]>
-Philippe Mathieu-Daudé <[email protected]> <[email protected]>
-Philippe Mathieu-Daudé <[email protected]> <[email protected]>
  Pierrick Bouvier <[email protected]> <[email protected]>
  Roman Bolshakov <[email protected]> <[email protected]>
  Sriram Yagnaraman <[email protected]> <[email protected]>
--

2.53.0

#3 lore raw
In reply to Manos Pitsidianakis
Quoted 37 lines · Manos Pitsidianakis
Quoted 24 lines · Philippe Mathieu-Daudé

Our ./scripts/get_maintainer.pl uses git .mailmap as a fallback:

  $ ./scripts/get_maintainer.pl -h
  usage: ./scripts/get_maintainer.pl [options] patchfile
         ./scripts/get_maintainer.pl [options] -f file|directory

--git-fallback => use git when no exact MAINTAINERS pattern (default: 1) --git-since => git history to use (default: 1-year-ago) --mailmap => use .mailmap file (default: 1)
...

  Default options:
    [--email --nogit --git-fallback --m --r --n --l --multiline
     --pattern-depth=0 --remove-duplicates --rolestats]

(see the '--git-fallback' used as default option).

Per gitmailmap(5) man page:

... the file .mailmap [...] is used to map author and committer names and email addresses to canonical real names and email addresses.

Quoted 7 lines

I added my entries in the "replace old addresses by a more recent one" section for this script use case, but we have been doing a good cleanup at having all files covered in MAINTAINERS, so with retrospective these entries aren't needed anymore (besides, using them retroactively credits all my contributions to the latest employer).

Hey Philippe,

Quoted 8 lines

As I posted here
https://lore.kernel.org/qemu-devel/[email protected]/T/#t

Quoted 2 lines

People who wish to use git log for employer attribution reasons must use --no-mailmap.

mailmap is for updating names/emails, not attribution. I do not think your patch is necessary.

Attribution of committers to employers is something that is very much a loose heuristic that only works for relatively recent commits.

Beyond .mailmap, the data we have in contrib/gitdm only ever reflects our current point-in-time understanding of employers. For cases where we map personal email addresses to employers, we are not keeping a historical record as people change jobs, so all historical commits from a personal email address get associated with the newest employer.

IOW if you want to attribute accurately, you need to look at the state of contrib/gitdm & .mailmap, as they were when the commit you want to attribute was merged.

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com       ~~        https://hachyderm.io/@berrange :|
|: https://libvirt.org          ~~          https://entangle-photo.org :|
|: https://pixelfed.art/berrange   ~~    https://fstop138.berrange.com :|