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