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

Re: [PATCH v2] approxidate: make "today" wrap to midnight

From
Junio C Hamano <gitster@pobox.com>
Date
May 16, 2026, 13:35 UTC
Message-ID
<xmqqik8ncw98.fsf@gitster.g>
In-Reply-To
<20260516113622.23902-1-taahol@utu.fi>
Tuomas Ahola <taahol@utu.fi> writes:
Show 14 quoted lines
> Although some commands do reject invalid approxidate expressions,
> in other cases those are simply evaluated as the current time.
> Oftentimes that is a perfectly good compromise to handle silly
> requests, but it isn't without rough edges.
> ...
> Bind "today" to new function `date_today()` as an approxidate
> special.  Make it return the last midnight if no specific time
> is given; i.e. retain the old behavior of "noon today" and such.
>
> Document the new behavior of "git log --since=today" in
> rev-list-options.adoc.
>
> Signed-off-by: Tuomas Ahola <taahol@utu.fi>
> ---
I like this construction of argument.

How does this patch mesh with your earlier effort to make "noon" and "tea" more sensible? Should we eject the "today is now" step from that series and instead queue this patch in its place?

Thanks.
Previous: Tuomas AholaNext: Tuomas Ahola
Message 4 of 5 in “approxidate: make "today" wrap to midnight”
  1. approxidate: make "today" wrap to midnightTuomas Ahola, May 15, 2026
  2. Junio C HamanoMay 16, 2026
  3. approxidate: make "today" wrap to midnightTuomas Ahola, May 16, 2026
  4. Junio C HamanoMay 16, 2026
  5. Tuomas AholaMay 16, 2026

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.