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

Re: [RFC PATCH v2] Add 'human' date format

From
SSStephen P. Smith <ischis2@cox.net>
Date
Nov 27, 2018, 04:10 UTC
Message-ID
<5263255.SQOp2klSmx@thunderbird>
In-Reply-To
<alpine.LFD.2.21.999.1807071502260.18818@i7.lan>
On Saturday, July 7, 2018 3:02:35 PM MST Linus Torvalds wrote:
Show 7 quoted lines
> From: Linus Torvalds <torvalds@linux-foundation.org>
> 
> This adds --date=human, which skips the timezone if it matches the
> current time-zone, and doesn't print the whole date if that matches (ie
> skip printing year for dates that are "this year", but also skip the
> whole date itself if it's in the last few days and we can just say what
> weekday it was).

In the "What's cooking...." email response [1] there was some concern about what to call this format.

While the format is more useful to humans by dropping inferred information, there is nothing that makes it actually human. Additionally, what one human considers a good format another may not like.

In part of the V2 patch email[2], Linus notes that the patch reports relative dates based on information inferred from the date on the machine running the git command at the time the command is executed.

If relative wasn't already taken that would be a reasonable choice instead of human.

Therefore keeping 'human' and documenting how the patch formats the date to suppress future "infinite" tweaks to the format seems like a a reasonable way to approach your concerns. [1]

I will start working the Doc's and test updates.   
On Wednesday, November 21, 2018 6:06:13 PM MST Junio C Hamano wrote:
> Command line completion;
I'm not quite sure what you want for this item.   Could you please describe?
sps

[1] https://public-inbox.org/git/xmqq8t1l6hve.fsf@gitster-ct.c.googlers.com/ [2] https://public-inbox.org/git/alpine.LFD.2.21.999.1807071502260.18818@i7.lan/

Previous: Linus Torvalds
Message 14 of 14 in “Add 'human' date format”
  1. Add 'human' date formatLinus Torvalds, Jul 7, 2018
  2. Linus TorvaldsJul 7, 2018
  3. Linus TorvaldsJul 7, 2018
  4. Add 'human' date formatLinus Torvalds, Jul 7, 2018
  5. Andrei RybakJul 11, 2018
  6. Andrei RybakJul 11, 2018
  7. Junio C HamanoJul 11, 2018
  8. Linus TorvaldsJul 11, 2018
  9. Linus TorvaldsJul 11, 2018
  10. Ævar Arnfjörð BjarmasonJul 11, 2018
  11. Linus TorvaldsJul 11, 2018
  12. Junio C HamanoJul 24, 2018
  13. Linus TorvaldsJul 24, 2018
  14. Stephen P. SmithNov 27, 2018

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.