From: Johannes Schindelin Date: Tue, 31 Mar 2009 00:18:36 +0000 (+0200) Subject: mailmap: resurrect lower-casing of email addresses X-Git-Tag: v1.6.2.2~9 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bf637803a799451e7feb596422932dd60f0384e1;p=git.git mailmap: resurrect lower-casing of email addresses Commit 0925ce4(Add map_user() and clear_mailmap() to mailmap) broke the lower-casing of email addresses. This mostly did not matter if your .mailmap has only lower-case email addresses; However, we did not require .mailmap to contain lowercase-only email addresses. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- diff --git a/mailmap.c b/mailmap.c index f12bb45a3..6be91b60d 100644 --- a/mailmap.c +++ b/mailmap.c @@ -50,6 +50,15 @@ static void add_mapping(struct string_list *map, { struct mailmap_entry *me; int index; + char *p; + + if (old_email) + for (p = old_email; *p; p++) + *p = tolower(*p); + if (new_email) + for (p = new_email; *p; p++) + *p = tolower(*p); + if (old_email == NULL) { old_email = new_email; new_email = NULL;