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

Date in git-commit output inconsistent with log.date format

From
Damien Regad <dregad@mantisbt.org>
Date
May 16, 2022, 12:42 UTC
Message-ID
<CA+zp4VNWMxZ2ieS8KP2-uUu90AMmdzyR31VGkf78KdG4jY4eug@mail.gmail.com>

I was amending a commit message, and noticed the date in the output is printed in 'default' format, as shown below:

$ git commit --amend --no-edit
[x bf63ada92] Test commit
 Date: Mon May 16 14:25:57 2022 +0200
 1 file changed, 32 insertions(+)
 create mode 100644 test.txt

Since I have set log.date=iso, I was expecting the date to use the format defined in that configuration. Is it intentional that the default format is applied instead ?

Thanks Damien

PS: Apologies if this has been asked before, I did search the list
archive without finding anything relevant.
Next: Junio C Hamano
Message 1 of 2 in “Date in git-commit output inconsistent with log.date format”
  1. Damien RegadMay 16, 2022
  2. Junio C HamanoMay 16, 2022

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.