git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] mailmap: resurrect lower-casing of email addresses

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Mar 31, 2009, 00:18 UTC
Message-ID
<f182fb1700e8dea15459fd02ced2a6e5797bec99.1238458535u.git.johannes.schindelin@gmx.de>
In-Reply-To
<cover.1238458535u.git.johannes.schindelin@gmx.de>

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>
---
 lezzee how that goes
 mailmap.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/mailmap.c b/mailmap.c
index f12bb45..6be91b6 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;
-- 
1.6.2.1.613.g25746
Next: A Large Angry SCM
Message 1 of 20 in “mailmap: resurrect lower-casing of email addresses”
  1. mailmap: resurrect lower-casing of email addressesJohannes Schindelin, Mar 31, 2009
  2. A Large Angry SCMApr 2, 2009
  3. Johannes SchindelinApr 2, 2009
  4. Junio C HamanoApr 2, 2009
  5. A Large Angry SCMApr 2, 2009
  6. Johannes SchindelinApr 2, 2009
  7. A Large Angry SCMApr 2, 2009
  8. Johannes SchindelinApr 3, 2009
  9. Jeff KingApr 3, 2009
  10. A Large Angry SCMApr 4, 2009
  11. Johannes SchindelinApr 6, 2009
  12. A Large Angry SCMApr 7, 2009
  13. Johannes SchindelinApr 7, 2009
  14. Markus HeidelbergApr 7, 2009
  15. Alles wird Git, was Re: [PATCH] mailmap: resurrect lower-casing of email addressesJohannes Schindelin, Apr 8, 2009
  16. A Large Angry SCMApr 8, 2009
  17. Alles wird Git, was Re: [PATCH] mailmap: resurrect lower-casing of email addressesJohannes Schindelin, Apr 8, 2009
  18. A Large Angry SCMApr 8, 2009
  19. A Large Angry SCMApr 4, 2009
  20. Marius Storm-OlsenApr 7, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.