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

Re: [PATCH v2] log: if --decorate is not given, default to --decorate=auto

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 30, 2017, 18:03 UTC
Message-ID
<xmqqa88263qw.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20170324183825.GD31294@aiede.mtv.corp.google.com>

With the "--decorate=auto" option becoming the default for "git log", "git tbdiff" will be broken.

The configuration variable has been already there, so in that sense this is not a new breakage (tbdiff wouldn't have worked well for those with configured default). A fix is trivial (attached).

I suspect that Alex's change may uncover similar breakages in people's scripts. Perhaps the topic should be cooked a bit longer than other topics on 'next'?

 git-tbdiff.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/git-tbdiff.py b/git-tbdiff.py
index ccf7a0b..ae7cbb5 100755
--- a/git-tbdiff.py
+++ b/git-tbdiff.py
@@ -75,7 +75,7 @@ def read_patches(rev_list_args):
     series = []
     diffs = {}
     p = subprocess.Popen(['git', 'log', '--no-color', '-p', '--no-merges',
-                          '--reverse', '--date-order']
+                          '--no-decorate', '--reverse', '--date-order']
                          + rev_list_args,
                          stdout=subprocess.PIPE)
     sha1 = None
Previous: Jonathan NiederNext: Jeff King
Message 4 of 6 in “log: if --decorate is not given, default to --decorate=auto”
  1. log: if --decorate is not given, default to --decorate=autoAlex Henrie, Mar 24, 2017
  2. Junio C HamanoMar 24, 2017
  3. Jonathan NiederMar 24, 2017
  4. Junio C HamanoMar 30, 2017
  5. Jeff KingMar 30, 2017
  6. Junio C HamanoMar 30, 2017

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.