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

Re: bisect does not respect 'log.date'

From
Peter Krefting <peter@softwolves.pp.se>
Date
Mar 25, 2024, 20:27 UTC
Message-ID
<25d716fa-bd32-4ff0-20f2-05ff51750911@softwolves.pp.se>
In-Reply-To
<4e2b22fb-7496-4f67-a89f-9fcbffc73a1a@siemens.com>
Osipov, Michael (IN IT IN):
> Interesting thought, but that also means that "git show" misbehaves because 
> it respects "log.date" and there is no "show.date". I still think that 
> consistency shouldn't be obeyed.
> I'd be happy if someone could consider this improvement.

I've also been annoyed at this. Everything else respects the date setting.

Bisect displays the commit through an invocation of "git diff-tree --pretty". This command does not respect the log.date setting, but it can be passed the --date parameter to format the date.

The question is what is the correct way of fixing this; is it to make "git diff-tree --pretty" respect the "log.date" option, or to make "git bisect" pass a --date pate parameter to the invocation of it?

Or perhaps everything should just be made support the "TIME_STYLE" that GNU tools use? GNU ls is so much nicer to use with "TIME_STYLE=long-iso" set.

-- 
\\// Peter - http://www.softwolves.pp.se/
Previous: Osipov, Michael (IN IT IN)Next: Junio C Hamano
Message 4 of 8 in “bisect does not respect 'log.date'”
  1. Osipov, Michael (IN IT IN)Mar 13, 2024
  2. Junio C HamanoMar 13, 2024
  3. Osipov, Michael (IN IT IN)Mar 13, 2024
  4. Peter KreftingMar 25, 2024
  5. Junio C HamanoMar 25, 2024
  6. bisect: Honor log.datePeter Krefting, Mar 28, 2024
  7. Eric SunshineMar 28, 2024
  8. Peter KreftingMar 28, 2024

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.