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 <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Schindelin committed
Mar 31, 2009 at 02:18 UTC
bf637803a799451e7feb596422932dd60f0384e1
1 file changed
+9
mailmap.c
+9
@@ -50,6 +50,15 @@ static void add_mapping(struct string_list *map,
50
{
51
struct mailmap_entry *me;
52
int index;
53
+ char *p;
54
+
55
+ if (old_email)
56
+ for (p = old_email; *p; p++)
57
+ *p = tolower(*p);
58
+ if (new_email)
59
+ for (p = new_email; *p; p++)
60
+ *p = tolower(*p);
61
+
62
if (old_email == NULL) {
63
old_email = new_email;
64
new_email = NULL;