Re: [RFC PATCH] gitweb: Map names/emails with mailmap
- From
Jeff King <peff@peff.net>
- Date
- Jul 31, 2020, 01:01 UTC
- Message-ID
- <20200731010129.GD240563@coredump.intra.peff.net>
- In-Reply-To
- <20200730041217.6893-1-me@pluvano.com>
On Thu, Jul 30, 2020 at 04:12:17AM +0000, Emma Brooks wrote:
> Add an option to map names and emails to their canonical forms via a > .mailmap file. This is enabled by default, consistent with the behavior > of Git itself.
I'm quite far from an expert in gitweb, but this seems like a good feature to have.
Having a separate implementation to read and apply mailmaps makes me worried that it will behave slightly differently than the C code, especially around corner cases. Is it possible for us to ask git programs that are called by gitweb to do the conversion for us (e.g., by passing "--use-mailmap" or using "%aE" and "%aN" formatters)? I won't be surprised if the answer is "no, we access commits using lower-level plumbing". But it's worth looking into, I think, if you didn't already.
-Peff