From: Luke Dashjr <luke@dashjr.org>
To: git@vger.kernel.org
Subject: GIT_COMMITTER_* and reflog
Date: Fri, 25 Oct 2019 21:49:22 +0000 [thread overview]
Message-ID: <201910252149.23787.luke@dashjr.org> (raw)
It appears the reflog currently allows its log data (name and date) to be
overridden by the GIT_COMMITTER_* environment variables. At least for my
workflow, this kinda breaks the reflog (as I regularly set GIT_COMMITTER_DATE
to produce deterministic commit objects).
Is there a need to support this override for the reflog?
Is there any reason it can't be changed to use GIT_REFLOG_* instead?
Note that the reflog does NOT pull the name/date from the commit object
itself, but rather calls git_committer_info() to get a new name/date for
reflog purposes. So it does not appear to be intentionally designed to use
the commit's date.
Thanks for your thoughts,
Luke
P.S. If the reflog date can be made useful like this, maybe I will finish a
minor patch to add reflog-date to the pretty formatting format so it can be
viewed nicely... ;)
next reply other threads:[~2019-10-25 21:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-25 21:49 Luke Dashjr [this message]
2019-10-26 2:20 ` GIT_COMMITTER_* and reflog Jonathan Nieder
2019-10-26 2:43 ` Luke Dashjr
2019-11-07 13:57 ` Philip Oakley
2019-10-26 7:34 ` Junio C Hamano
2019-10-26 17:37 ` Jeff King
2019-10-27 12:20 ` Junio C Hamano
2019-10-29 14:05 ` Phillip Wood
2019-10-29 14:34 ` Jeff King
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=201910252149.23787.luke@dashjr.org \
--to=luke@dashjr.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).