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

Re: [PATCH v2] Documentation: updated documentation for git commit --date

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 30, 2021, 17:28 UTC
Message-ID
<xmqqsg4ceel4.fsf@gitster.g>
In-Reply-To
<f0200d12-2c0f-ee36-551f-f8133a4dea20@gmail.com>
Chinmoy Chakraborty <chinmoy12c@gmail.com> writes:
Show 16 quoted lines
>> [Footnote]
>>
>> *1* The approxidate is useful when a rough "around that time"
>>      specification suffices, e.g. "git log --since='last.week'".  The
>>      user is OK to see commits down to roughly a week old, and would
>>      not be upset if a commit with a timestamp that is 9 days old
>>      shown.
>>
>>      On the other hand, it would be unusual that somebody cares
>>      enough to use "git commit --date" but yet it is OK that the time
>>      recorded is fuzzy.  For that reason alone, I am in general
>>      negative on the direction this patch tries to take us in.
>
> So according to you, is it a relevant/worthwhile change
>
> to add in docs?
That depends on the "docs".

If we do not hint that relative dates are also usable, in addition to the more common date formats like RFC2822 and ISO8601, for "log --since" and other options that are used to specify a boundary for looking up existing things, extending their documentation may be worth doing.

Giving 'tea' and other oddities at the top as if they are more important than the formats that is used to give more precise input for options that are used to specify what timestamp is recorded in an object the command is about to create would be a change with negative value.

Thanks.
Previous: Chinmoy Chakraborty
Message 9 of 9 in “Documentation: updated documentation for git commit --date”
  1. Documentation: updated documentation for git commit --dateChinmoy via GitGitGadget, Mar 28, 2021
  2. Documentation: updated documentation for git commit --dateChinmoy via GitGitGadget, Mar 28, 2021
  3. Bagas SanjayaMar 29, 2021
  4. Chinmoy ChakrabortyMar 29, 2021
  5. Bagas SanjayaMar 29, 2021
  6. Chinmoy ChakrabortyMar 29, 2021
  7. Junio C HamanoMar 29, 2021
  8. Chinmoy ChakrabortyMar 30, 2021
  9. Junio C HamanoMar 30, 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.