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.