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

Re: [PATCH] doc: `--date` in `git-commit` accepts approxidates

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 23, 2021, 19:33 UTC
Message-ID
<xmqqtuq21swj.fsf@gitster.g>
In-Reply-To
<YDVFaTGnPCfuJQSa@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 7 quoted lines
> And then at the end of that section, expand what it's willing to take:
>
> ifdef::git-commit[]
> The `--date` option (but not the environment variables) will also try to
> make sense of other more human-centric date formats, including relative
> dates like "yesterday" or "last Friday at noon".
> endif::git-commit[]

Yup, I find this a lot more acceptable than reference to the code that may happen to be correct only at this moment but can deviate over time from the reality. IIRC, the implementation detail cited in the patch under review (e.g. use of _careful() helper) did change in 2014.

Thanks, both.  Looking forward to seeing an updated patch.
Previous: Jeff KingNext: Utku Gultopu via GitGitGadget
Message 3 of 9 in “doc: `--date` in `git-commit` accepts approxidates”
  1. doc: `--date` in `git-commit` accepts approxidatesUtku Gultopu via GitGitGadget, Feb 23, 2021
  2. Jeff KingFeb 23, 2021
  3. Junio C HamanoFeb 23, 2021
  4. doc: `--date` in `git-commit` accepts approxidatesUtku Gultopu via GitGitGadget, Feb 23, 2021
  5. Jeff KingFeb 23, 2021
  6. Junio C HamanoFeb 23, 2021
  7. UtkuFeb 23, 2021
  8. Jeff KingFeb 23, 2021
  9. UtkuFeb 23, 2021

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.