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

Re: Git for Windows v2.23.0-rc0, was Re: [ANNOUNCE] Git v2.23.0-rc0

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 1, 2019, 21:54 UTC
Message-ID
<xmqq5zngmtzh.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<xmqqa7csmudm.fsf@gitster-ct.c.googlers.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 10 quoted lines
> Jeff King <peff@peff.net> writes:
>
>>> +	if (mailmap < 0)
>>>  		mailmap = 0;
>>> -	}
>>
>> This should be "mailmap = 1" to match the commit message, no? (Which
>> also implies we may want a new test).
>
> Gaa, of course.
-- >8 --
From: Junio C Hamano <gitster@pobox.com>
Date: Thu, 1 Aug 2019 14:48:34 -0700
Subject: [PATCH] log: really flip the --mailmap default
Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
 builtin/log.c      | 2 +-
 t/t4203-mailmap.sh | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/builtin/log.c b/builtin/log.c
index 40b4cbf57d..02fa179077 100644
--- a/builtin/log.c
+++ b/builtin/log.c
@@ -205,7 +205,7 @@ static void cmd_log_init_finish(int argc, const char **argv, const char *prefix,
 	userformat_find_requirements(NULL, &w);
 
 	if (mailmap < 0)
-		mailmap = 0;
+		mailmap = 1;
 
 	if (!rev->show_notes_given && (!rev->pretty_given || w.notes))
 		rev->show_notes = 1;
diff --git a/t/t4203-mailmap.sh b/t/t4203-mailmap.sh
index 43b1522ea2..ede0c292af 100755
--- a/t/t4203-mailmap.sh
+++ b/t/t4203-mailmap.sh
@@ -461,6 +461,11 @@ test_expect_success 'Grep author with log.mailmap' '
 	test_cmp expect actual
 '
 
+test_expect_success 'log.mailmap is true by default these days' '
+	git log --author Santa | grep Author >actual &&
+	test_cmp expect actual
+'
+
 test_expect_success 'Only grep replaced author with --use-mailmap' '
 	git log --use-mailmap --author "<cto@coompany.xx>" >actual &&
 	test_must_be_empty actual
-- 
2.23.0-rc0-155-g5fbf3435fe
Previous: Junio C HamanoNext: Todd Zullinger
Message 17 of 27 in “[ANNOUNCE] Git v2.23.0-rc0”
  1. Junio C HamanoJul 29, 2019
  2. Git for Windows v2.23.0-rc0, was Re: [ANNOUNCE] Git v2.23.0-rc0Johannes Schindelin, Jul 31, 2019
  3. Jeff KingJul 31, 2019
  4. Jonathan NiederAug 1, 2019
  5. Ariadne ConillAug 1, 2019
  6. Jeff KingAug 1, 2019
  7. Jonathan NiederAug 1, 2019
  8. Ariadne ConillAug 1, 2019
  9. Jeff KingAug 1, 2019
  10. Junio C HamanoAug 1, 2019
  11. Ariadne ConillAug 1, 2019
  12. Johannes SchindelinAug 1, 2019
  13. Junio C HamanoAug 1, 2019
  14. Ariadne ConillAug 1, 2019
  15. Jeff KingAug 1, 2019
  16. Junio C HamanoAug 1, 2019
  17. Junio C HamanoAug 1, 2019
  18. Todd ZullingerAug 1, 2019
  19. Jonathan NiederAug 2, 2019
  20. Junio C HamanoAug 2, 2019
  21. Jeff KingAug 2, 2019
  22. Bryan TurnerAug 1, 2019
  23. Johannes SchindelinAug 1, 2019
  24. RelNotes/2.23.0: fix a few typos and other minor issuesMartin Ågren, Aug 1, 2019
  25. Junio C HamanoAug 1, 2019
  26. Junio C HamanoAug 1, 2019
  27. Martin ÅgrenAug 1, 2019

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.