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/