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

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

From
Chinmoy Chakraborty <chinmoy12c@gmail.com>
Date
Mar 30, 2021, 16:38 UTC
Message-ID
<f0200d12-2c0f-ee36-551f-f8133a4dea20@gmail.com>
In-Reply-To
<xmqqim59irba.fsf@gitster.g>
On 3/30/21 2:57 AM, Junio C Hamano wrote:
Show 11 quoted lines
> All of that can be read from the patch text.  What an author is
> expected to explain in the proposed commit log message is WHY.
>
> Why is it a good idea to list possible arguments --date can take?
>
> The reason can include "because so far they are not explained
> anywhere."
>
> Documentation/SubmittingPatches::describe-changes, especially
> [[meaningful-message]], is a good source to learn what a title and a
> proposed log message of a patch should look like in this project.
Okay I'll update the patch with proper commit message.
Show 15 quoted lines
> I am not very strongly opposed to extending the tail end of the
> existing contents of the file, namely:
>
>      ifdef::git-commit[]
>      In addition to recognizing all date formats above, the `--date` option
>      will also try to make sense of other, more human-centric date formats,
>      such as relative dates like "yesterday" or "last Friday at noon".
>      endif::git-commit[]
>
> and explain what "such as ..." is, but I am fairly negative on
> teaching 'tea' to our users before we talk about 2822 and 8601
> formats.  I actually think the above three lines strikes a good
> balance---we do not want the users to be surprised too much when
> they see "--date yesterday" to work, but we do not particularly
> want to encourage them to use "commit --date noon" [*1*].
Okay so I guess it's better to just extend the tail of the file
to explain a little bit about the relative dates and leave
out the Easter eggs and formats like 'noon' and 'midnight'
> Likewise.  I am OK with adding (see date-formats) but against
> listing the easter eggs as if they are more important than other
> forms.
Okay I'll just add the (see date-formats) and leave out the
exhaustive list.
Show 13 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?
Thanks.
Previous: Junio C HamanoNext: Junio C Hamano
Message 8 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.