From: Junio C Hamano <gitster@pobox.com>
To: Jeff King <peff@peff.net>
Cc: "Eirik Bjørsnøs" <eirbjo@gmail.com>, git@vger.kernel.org
Subject: Re: Invalid dates in git log
Date: Wed, 12 Dec 2007 01:35:08 -0800 [thread overview]
Message-ID: <7vejds8ddf.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <20071212092304.GA20799@coredump.intra.peff.net> (Jeff King's message of "Wed, 12 Dec 2007 04:23:04 -0500")
Jeff King <peff@peff.net> writes:
> On Wed, Dec 12, 2007 at 10:11:12AM +0100, Eirik Bjørsnøs wrote:
>
>> My questions are:
>>
>> 1) Is this a problem in the Git software?
>
> No. Whoever made the commit probably just didn't have their clock set
> right. Git doesn't generally care about the timestamp for its
> operations; it just records it as a historical note.
"git show -s" with --pretty=fuller and --pretty=raw on these two
commiits reveal:
Author: Ursula Braun <braunu@de.ibm.com>
AuthorDate: Thu Jan 1 01:00:01 1970 +0100
Commit: Jeff Garzik <jeff@garzik.org>
CommitDate: Fri Oct 19 23:00:02 2007 -0400
author Ursula Braun <braunu@de.ibm.com> 1 +0100
committer Jeff Garzik <jeff@garzik.org> 1192849202 -0400
Author: Len Brown <len.brown@intel.com>
AuthorDate: Fri Apr 5 00:07:45 2019 -0500
Commit: Len Brown <len.brown@intel.com>
CommitDate: Tue Jul 12 00:12:09 2005 -0400
author Len Brown <len.brown@intel.com> 1554440865 -0500
committer Len Brown <len.brown@intel.com> 1121141529 -0400
So the former commit was made while seting GIT_AUTHOR_DATE explicitly to
1, which is quite likely a bug in some script Jeff used to create this
commit about two months ago.
I have no idea about the latter, though. It looks like quite a random
timestamp, and committer timestamp look reasonable, relative to the
other commits around it.
For a short while, between Nov 11th to Dec 8th this year on 'next' (and
between Dec 4th and Dec 8th on 'master'), git-commit-tree accepted an
empty GIT_AUTHOR_DATE and recorded a bogus "0" time in the commit by
mistake, but such a commit would have shown something like:
author A U Thor <au.thor@example.com>
without any timestamp, and both commits predate the gotcha, so I do not
think they are caused by that recent breakage.
next prev parent reply other threads:[~2007-12-12 9:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-12 9:11 Invalid dates in git log Eirik Bjørsnøs
2007-12-12 9:23 ` Jeff King
2007-12-12 9:35 ` Junio C Hamano [this message]
2007-12-12 14:59 ` Johannes Schindelin
2007-12-12 18:57 ` Junio C Hamano
2007-12-12 14:19 ` Eirik Bjørsnøs
2007-12-12 15:51 ` Andreas Ericsson
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vejds8ddf.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=eirbjo@gmail.com \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
/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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.