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

Re: Use of a mailmap file with git-log

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 10, 2012, 20:16 UTC
Message-ID
<7vfw3dacj5.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CALWbr2ydMkR_O-Gev7k-HjGadRJMv0UH3XdqtM0Jt=vC82GwJw@mail.gmail.com>
Antoine Pelisse <apelisse@gmail.com> writes:
Show 5 quoted lines
> It could indeed be very interesting to have mailmap applied to git-log and
> especially to git-log --author/--committer.
> ...
> The choice of parse_commit_buffer to do the modification is due to
> the grepping being done directly on buffer when grepping author/committerer.

For pattern matching, I think revision.c::commit_match() is probably the right place to do this kind of thing. I just noticed that we grep for the string inside a raw buffer, even when "encoding" is specified, which I think is a bug.

Previous: Junio C Hamano
Message 6 of 6 in “Use of a mailmap file with git-log”
  1. Rich MidwinterDec 10, 2012
  2. Junio C HamanoDec 10, 2012
  3. Junio C HamanoDec 10, 2012
  4. Antoine PelisseDec 10, 2012
  5. Junio C HamanoDec 10, 2012
  6. Junio C HamanoDec 10, 2012

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.