git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] mailmap: add an entry for Phillip Wood

From
Jeff King <peff@peff.net>
Date
Jan 20, 2026, 19:24 UTC
Message-ID
<20260120192424.GA3295894@coredump.intra.peff.net>
In-Reply-To
<xmqqtswgywb4.fsf@gitster.g>
On Tue, Jan 20, 2026 at 10:26:55AM -0800, Junio C Hamano wrote:
Show 32 quoted lines
> "Kristoffer Haugsbakk" <kristofferhaugsbakk@fastmail.com> writes:
> 
> > On Tue, Jan 20, 2026, at 12:01, Phillip Wood wrote:
> >> From: Phillip Wood <phillip.wood@dunelm.org.uk>
> >>
> >> While all my commits appear under the same address, other addresses
> >> appear in some commit trailers. Map those addresses to the canonical
> >> one.
> >>
> >> Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
> >> ---
> >> I'm not sure if we actually remap the address in trailers but
> >> we've certainly talked about doing it in the past.
> >
> > Yeah it does.
> 
> Hmph, are you sure?  My quick experiment tells me that the trailers
> are not munged.
> 
>     $ git show --pretty=fuller -s | grep '@'
>     Author:     Patrick Steinhardt <ps@pks.im>
>     Commit:     Junio C Hamano <gitster@pobox.com>
>         Signed-off-by: Patrick Steinhardt <ps@pks.im>
>         Signed-off-by: Junio C Hamano <gitster@pobox.com>
>     $ cat >>.mailmap <<\EOF
>     Junio C Hamano <no-such-user@google.com> <gitster@pobox.com>
>     EOF
>     $ git show --pretty=fuller -s | grep '@'
>     Author:     Patrick Steinhardt <ps@pks.im>
>     Commit:     Junio C Hamano <no-such-user@google.com>
>         Signed-off-by: Patrick Steinhardt <ps@pks.im>
>         Signed-off-by: Junio C Hamano <gitster@pobox.com>
We do apply them in some places, like shortlog:
  $ cat >>.mailmap <<\EOF
  Junio C Hamano <no-such-user@google.com> <gitster@pobox.com>
  EOF
  $ git shortlog -1 -ne --group=trailer:signed-off-by 3f051fc9
  Junio C Hamano <no-such-user@google.com> (1):
        doc: patch-id: --verbatim locks in --stable
  
  Kristoffer Haugsbakk <code@khaugsbakk.name> (1):
        doc: patch-id: --verbatim locks in --stable

As you noted, we don't necessarily know that a given trailer represents an ident. But we try to parse them as one (not just for mailmap, but for stuff like "-e"), and if that doesn't work leave it as an opaque string. That all comes from 56d5dde752 (shortlog: parse trailer idents, 2020-09-27).

I _thought_ we added support for %(trailers) to handle mailmap, too, but...

> Or perhaps your "Yeah" is about "we've talkined about doing it"?
...yeah, I think this is the case. There's a proof of concept at:
  https://lore.kernel.org/git/YW8A5FznqLYs7MqH@coredump.intra.peff.net/

but nobody ever took it further (I do still run with it as part of my daily build, which probably enhanced my confusion ;) ).

-Peff
Previous: Kristoffer HaugsbakkNext: Kristoffer Haugsbakk
Message 5 of 7 in “mailmap: add an entry for Phillip Wood”
  1. mailmap: add an entry for Phillip WoodPhillip Wood, Jan 20, 2026
  2. Kristoffer HaugsbakkJan 20, 2026
  3. Junio C HamanoJan 20, 2026
  4. Kristoffer HaugsbakkJan 20, 2026
  5. Jeff KingJan 20, 2026
  6. Kristoffer HaugsbakkJan 21, 2026
  7. Phillip WoodJan 21, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.