summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8c7f788)
raw | patch | inline | side by side (parent: 8c7f788)
author | Johannes Schindelin <johannes.schindelin@gmx.de> | |
Tue, 31 Mar 2009 00:18:36 +0000 (02:18 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 1 Apr 2009 18:00:54 +0000 (11:00 -0700) |
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 <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
mailmap.c | patch | blob | history |
diff --git a/mailmap.c b/mailmap.c
index f12bb45a3f734e48f003a7a2943d168c26778603..6be91b60dfc8c37bd21c45d1480f7b3cf1fe5a99 100644 (file)
--- a/mailmap.c
+++ b/mailmap.c
{
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;