commit: search author pattern against mailmap
commitea16794e4303e79f8acb01a93fb6b1762972ab86
authorAntoine Pelisse <apelisse@gmail.com>
Fri, 23 Aug 2013 13:48:31 +0000 (23 15:48 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 25 Aug 2013 05:17:39 +0000 (24 22:17 -0700)
treeb7cfced09a5db569eccaf9d40a00a41603ef8389
parent0d8beaa5b76e824c9869f0d1f1b19ec7acf4982f
commit: search author pattern against mailmap

"git commit --author=$name" sets the author to one whose name
matches the given string from existing commits, when $name is not in
the "Name <e-mail>" format. However, it does not honor the mailmap
to use the canonical name for the author found this way.

Fix it by telling the logic to find a matching existing author to
honor the mailmap, and use the name and email after applying the
mailmap.

Signed-off-by: Antoine Pelisse <apelisse@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c
t/t4203-mailmap.sh