Re: [PATCH] doc: commit: document special date keywords for --date
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 23, 2026, 17:10 UTC
- Message-ID
- <xmqqa4wzo077.fsf@gitster.g>
- In-Reply-To
- <pull.2051.git.1771836303147.gitgitgadget@gmail.com>
"Md Ferdous Alam via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 5 quoted lines
> From: mdferdousalam <mdferdousalam1989@yahoo.com> > > The --date option in git-commit accepts human-readable keywords > like "now", "yesterday", "noon", "midnight", "tea", and "never", > but these were not documented.
I've always thought that these are easter eggs to be discovered, deliberately left out of documentation, as they mostly exist to be amusing. For those who want to be precise, the date formats section gives sufficient information.
Other than perhaps "now", which may be handy but not so useful in the context of "git commit --date=now".
Moreover, 7.days.ago and 1.week.ago are also in the same category as what you called "keywords" here, but we do not try to make an exhausitive list.
So, I dunno.