git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Damien Regad <dregad@mantisbt.org>
To: git@vger.kernel.org
Subject: Date in git-commit output inconsistent with log.date format
Date: Mon, 16 May 2022 14:42:05 +0200	[thread overview]
Message-ID: <CA+zp4VNWMxZ2ieS8KP2-uUu90AMmdzyR31VGkf78KdG4jY4eug@mail.gmail.com> (raw)

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.

             reply	other threads:[~2022-05-16 12:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-16 12:42 Damien Regad [this message]
2022-05-16 16:14 ` Date in git-commit output inconsistent with log.date format Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+zp4VNWMxZ2ieS8KP2-uUu90AMmdzyR31VGkf78KdG4jY4eug@mail.gmail.com \
    --to=dregad@mantisbt.org \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).