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

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

From
Bagas Sanjaya <bagasdotme@gmail.com>
Date
Mar 29, 2021, 11:11 UTC
Message-ID
<5f69547a-723c-05d4-e00c-c7a5d6760315@gmail.com>
In-Reply-To
<98c196c4-31ff-4df1-9215-77d115771583@gmail.com>
On 29/03/21 13.02, Chinmoy Chakraborty wrote:
Show 6 quoted lines
> I think initially it was suggested as a joke, but actually implemented
> 
> to demonstrate the ability for users to include their own custom
> 
> time/date periods.
> 
Hmmm...

The commit you mentioned (a8aca418d6484400d6804e22717bd49ca06c28e9) said that:

Show 5 quoted lines
>     Thanks for pointing out tea-time.
> 
>     This is also written to easily extended to allow people to add their own
>     important dates like Christmas and their own birthdays.
> 

But it seems like the predefined dates/times were hard-coded, so to extend --date option to allow more predefined date/times, Git sources need to be edited.

Maybe we can make git config option (commit.predefined_times [FIXME: suggest better name]) so user can easily add ones.

Also, I asked to you: can I set --date to arbitrary date (like 09/29/2009 19:59)?

[CC] Junio, what about this patch?
-- 
An old man doll... just what I always wanted! - Clara
Previous: Chinmoy ChakrabortyNext: Chinmoy Chakraborty
Message 5 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.