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

From
Jeff King <hidden>
Date
2023-02-01 11:51:56
Reply to
Andrei Rybak, 2023-02-01
On Wed, Feb 01, 2023 at 02:33:49AM +0100, Andrei Rybak wrote:
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
Thread (3 messages) 3 messages, 3 authors, last reply 2023-02-01
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help