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

Re: [PATCH] commit: search author pattern against mailmap

From
Antoine Pelisse <apelisse@gmail.com>
Date
Aug 25, 2013, 20:42 UTC
Message-ID
<CALWbr2xRZzwUKUFZ=v21h6h1c13Hk8V2VgMQiQwjxvdKQ=CcDA@mail.gmail.com>
In-Reply-To
<20130825165153.GC21092@sigill.intra.peff.net>
On Sun, Aug 25, 2013 at 6:51 PM, Jeff King <peff@peff.net> wrote:
Show 13 quoted lines
> On Sun, Aug 25, 2013 at 03:37:24PM +0200, Antoine Pelisse wrote:
>
>> So we would stop passing mailmap string_list along down to map_user(),
>> and the mailmap file (or blob) would be read the first time it's
>> needed, and stored in a static global variable in mailmap.c. I think
>> I'm OK with that because I don't think it would make sense to have
>> multiple instances of a mailmap string_list in the same git-command
>> instance.
>
> Exactly. Sample (largely untested) patch is below if you want to use it
> as a starting point. There are probably a few additional cleanups on top
> (e.g., "git log" understands "--mailmap", which should probably be
> centralized to handle_revision_opt).

I'm not exactly sure how I would improve the patch you sent. I remember Junio was not willing to move --use-mailmap option to revision options and wanted to keep it just for "log" (though I don't have a reference to that email).

I've tested the patch against the test-suite and have given a thorough read to it, and I think it's fine.

Would you mind sending it as a proper patch ? I have nothing to add, and I'm terrible at writing commit messages :-/ Or maybe someone else's opinion would be nice. I'm still not convinced this is even necessary.

Thanks !
Previous: Jeff KingNext: Junio C Hamano
Message 15 of 17 in “git-commit: search author pattern against mailmap”
  1. git-commit: search author pattern against mailmapAntoine Pelisse, Aug 23, 2013
  2. Junio C HamanoAug 23, 2013
  3. Jeff KingAug 23, 2013
  4. Junio C HamanoAug 23, 2013
  5. Antoine PelisseAug 23, 2013
  6. Junio C HamanoAug 23, 2013
  7. commit: search author pattern against mailmapAntoine Pelisse, Aug 24, 2013
  8. Jeff KingAug 25, 2013
  9. Junio C HamanoAug 25, 2013
  10. Antoine PelisseAug 25, 2013
  11. commit: search author pattern against mailmapAntoine Pelisse, Aug 25, 2013
  12. Jeff KingAug 25, 2013
  13. Antoine PelisseAug 25, 2013
  14. Jeff KingAug 25, 2013
  15. Antoine PelisseAug 25, 2013
  16. Junio C HamanoAug 26, 2013
  17. Jeff KingAug 26, 2013

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.