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

Re: [PATCH 1/3] log: Show reflog date with --date=normal

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 28, 2009, 13:27 UTC
Message-ID
<alpine.DEB.1.00.0907281524220.8306@pacific.mpi-cbg.de>
In-Reply-To
<200907281511.10010.trast@student.ethz.ch>
Hi,
On Tue, 28 Jul 2009, Thomas Rast wrote:
Show 8 quoted lines
> Johannes Schindelin wrote:
> > 
> > Inspecting reflogs is an interactive task, and I do not think that 
> > this justifies the complications you suggested.  I can _easily_ say 
> > "git log -g" and then "git show --date=relative <commit>".  Not that I 
> > _ever_ needed such a thing.
> 
> That's something entirely different.

No, it's not. The '--date=<format>' option was always about the commit dates. It was just DWIMed in the context of '--reflog' to mean "show me the dates in the reflogs, too".

As such, I think having '--no-date' switch that DWIM off (and reverting to default date format for the commit dates) is perfectly acceptable and consistent.

Having DATE_NORMAL and DATE_DEFAULT do exactly the same thing -- except in the presence of '--reflog' -- is nothing I want to see in Git. It is inconsistent, unintuitive and confusing.

I could live with switching off the DWIMery and introducing '--reflog-date=<format', though but the whole point of our IRC discussion was to make it less painful to switch on the date-based reflogs, no?

Now, it often happened that Junio just ignored such comments of mine, and I had to live with the consequences. I just hope it does not happen here.

Ciao, Dscho

Previous: Thomas RastNext: Junio C Hamano
Message 9 of 10 in “log: Show reflog date with --date=normal”
  1. 1/3 log: Show reflog date with --date=normalThomas Rast, Jul 28, 2009
  2. 2/3 log: --date and --no-date to toggle reflog datesThomas Rast, Jul 28, 2009
  3. 3/3 bash completion: log --date, --no-date and --date=normalThomas Rast, Jul 28, 2009
  4. Johannes SchindelinJul 28, 2009
  5. Johannes SchindelinJul 28, 2009
  6. Thomas RastJul 28, 2009
  7. Johannes SchindelinJul 28, 2009
  8. Thomas RastJul 28, 2009
  9. Johannes SchindelinJul 28, 2009
  10. Junio C HamanoJul 28, 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.