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

Re: Inconsistency between git-log documentation and behavior regarding default date format.

From
Jeff King <peff@peff.net>
Date
Feb 1, 2023, 11:51 UTC
Message-ID
<Y9pSWCS1BNkHt+Mw@coredump.intra.peff.net>
In-Reply-To
<8d72f484-6a72-87f9-44f1-3a38471201db@gmail.com>
On Wed, Feb 01, 2023 at 02:33:49AM +0100, Andrei Rybak wrote:
Show 13 quoted lines
> Indeed, the description of the option (which comes from
> Documentation/rev-list-options.txt) doesn't describe all differences
> between --date=default and --date=rfc2822.
> 
> A fuller list could be:
> 
>     * There is no comma after the day-of-week
>     * The time zone is omitted when the local time zone is used
>     * Day-of-month and month are switched around
>     * Time-of-day and the year are switched around
> 
> CC'ing Peff, who wrote the list of exceptions in add00ba2de (date: make
> "local" orthogonal to date format, 2015-09-03).

I don't think I had any particular reason to omit those other differences. I probably just didn't notice them. Patches welcome.

-Peff
Previous: Andrei Rybak
Message 3 of 3 in “Inconsistency between git-log documentation and behavior regarding default date format.”
  1. Rafael DulferJan 24, 2023
  2. Andrei RybakFeb 1, 2023
  3. Jeff KingFeb 1, 2023

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.