Code

mailinfo: better parse email adresses containg parentheses
authorPhilippe Bruhat (BooK) <book@cpan.org>
Mon, 21 Jul 2008 13:34:29 +0000 (15:34 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 22 Jul 2008 03:09:12 +0000 (20:09 -0700)
commit0d4ede9f5493f0e15fb4f799e6a4a25e36c49fd2
treed35c355043be527f84bde43990507a757ccf18a9
parent75e1645fbe5e0309fbab8c2bfeaebe2c505e679d
mailinfo: better parse email adresses containg parentheses

When using git-rebase, author fields containing a ')' at the last position
had the close-parens character removed; the removal should be done only
when it is of this form:

        user@host (User Name)

i.e. the remainder after stripping the e-mail address part is enclosed in
a parentheses pair as a whole, not for addresses like this:

        User Name (me) <user@host>

Signed-off-by: Philippe Bruhat (BooK) <book@cpan.org>
Acked-by: Lukas Sandström <lukass@etek.chalmers.se>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-mailinfo.c