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 !