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

Does anything document --date=tea/yesterday/noon/midnight/never/now etc.?

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Jul 29, 2016, 22:55 UTC
Message-ID
<CACBZZX5gzu5TRzsd3o6uYfe_uNCqY2jwUUEzpxJg0zH1G-qgSw@mail.gmail.com>

These were originally added by Linus back in v0.99.9-230-ga8aca41, a bit was added to them since then. See https://github.com/git/git/blob/v2.9.2/date.c#L927

The v0.99.9-214-g3c07b1d commit also has some info on the warty edge cases these have to deal with.

I was checking what documented "git commit --amend --date=now", but Documentation/date-formats.txt only mentions ISO/RFC formats.

I thought I'd just submit a trivial patch to document this but a) maybe it's in some mysterious part of the docs I've missed b) after reading v0.99.9-214-g3c07b1d and some of the date.c code it looks like it won't be that trivial to describe this.

Message 1 of 1 in “Does anything document --date=tea/yesterday/noon/midnight/never/now etc.?”
  1. Ævar Arnfjörð BjarmasonJul 29, 2016

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.