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

Re: Oddidies in the .mailmap parser & future syntax extensions

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 10, 2021, 20:20 UTC
Message-ID
<xmqqk0jorxmx.fsf@gitster.g>
In-Reply-To
<87h7esb3ig.fsf@evledraar.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
> Who wants to use mailmap, *and* map one e-mail address to another, *and*
> has an entry explicitly mapping the name, but *would* mind having git be
> auto-smart and follow the chain of that explicit name mapping if there's
> an entry after that with an an e-mail -> that-earlier-email mapping?

Would it make a difference if I point out that at least for our project, we want to keep the .mailmap lines be sorted? I suspect that a "list must be mechanically sorted" requirement may make it awkward to also have an "if name is missing, use the last matching explicit name". Also, it makes removing one entry among many for the same person less straight-forward (if you are removing the one that happens to be listed first, you need to move the name to the next entry in order to avoid losing it).

Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 12 of 13 in “.mailmap: Update mailmap”
  1. .mailmap: Update mailmapFangyi Zhou, Sep 10, 2021
  2. Gwyneth MorganSep 10, 2021
  3. Jeff KingSep 10, 2021
  4. Sibi SiddharthanSep 10, 2021
  5. Junio C HamanoSep 11, 2021
  6. Ævar Arnfjörð BjarmasonSep 11, 2021
  7. Jeff KingSep 11, 2021
  8. Jeff KingSep 11, 2021
  9. Oddidies in the .mailmap parser & future syntax extensionsÆvar Arnfjörð Bjarmason, Sep 10, 2021
  10. Junio C HamanoSep 10, 2021
  11. Ævar Arnfjörð BjarmasonSep 10, 2021
  12. Junio C HamanoSep 10, 2021
  13. Ævar Arnfjörð BjarmasonSep 13, 2021

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.