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

Re: [PATCH] rev-list: clarify git-log default date format

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 2, 2023, 16:53 UTC
Message-ID
<xmqqsffouhys.fsf@gitster.g>
In-Reply-To
<xmqqfsbovy7u.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> writes:
Show 10 quoted lines
> Rafael Dulfer <rafael@dulfer.be> writes:
>
>> like. "`--date=default` is the default format. It is a custom format
>> based on rfc2822".
>
> But the thing is it is *not* custom based on rfc2822.  The default
> format came first, 2822 much later.  If I have to guess (and I
> shouldn't because I was around back when we invented that format,
> but I am lazy and my recollecion hazy), it came straight from the
> result of ctime() but with timezone info appended at the end.

It indeed was modeled after ctime() in f80cd783 (date.c: add "show_date()" function., 2005-05-06).

    date.c: add "show_date()" function.
    
    Kind of like ctime(), but not as broken.
Previous: Junio C HamanoNext: Junio C Hamano
Message 8 of 13 in “rev-list: clarify git-log default date format”
  1. rev-list: clarify git-log default date formatRafael Dulfer, Feb 1, 2023
  2. Junio C HamanoFeb 1, 2023
  3. Jeff KingFeb 1, 2023
  4. Ævar Arnfjörð BjarmasonFeb 1, 2023
  5. Junio C HamanoFeb 1, 2023
  6. Rafael DulferFeb 2, 2023
  7. Junio C HamanoFeb 2, 2023
  8. Junio C HamanoFeb 2, 2023
  9. rev-list: clarify git-log default date formatJunio C Hamano, Feb 16, 2023
  10. Jeff KingFeb 16, 2023
  11. Junio C HamanoFeb 16, 2023
  12. rev-list: clarify git-log default date formatJunio C Hamano, Feb 16, 2023
  13. Jeff KingFeb 16, 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.