Re: Invalid dates in git log

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Johannes Schindelin <Johannes.Schindelin@xxxxxx> writes:

> On Wed, 12 Dec 2007, Junio C Hamano wrote:
>
>>     Author:     Len Brown <len.brown@xxxxxxxxx>
>>     AuthorDate: Fri Apr 5 00:07:45 2019 -0500
>>     Commit:     Len Brown <len.brown@xxxxxxxxx>
>>     CommitDate: Tue Jul 12 00:12:09 2005 -0400
>> 
>>     author Len Brown <len.brown@xxxxxxxxx> 1554440865 -0500
>>     committer Len Brown <len.brown@xxxxxxxxx> 1121141529 -0400
>> 
>> [...] It looks like quite a random timestamp, and committer timestamp 
>> look reasonable, relative to the other commits around it.
>
> It is quite possible that Len Brown had a similar problem to what I 
> experienced yesterday: my clock was set one hour and 22 years into the 
> future, but I have no idea how that happened.  My only guess is a 
> half-succeeded ntpdate call, but somehow I doubt that.

But how would you explain the more reasonable committer date?

I am guessing that this particular commit was rebased (using rebase,
rebase -i, stgit, guilt or something else), and whatever tool that was
used had some thinko that broke the author timestamp (and zone).

Nah, exonerate guilt and rebase -i from the list.  The commit is from
July 2005 which means there wasn't much usable tool for rebasing in the
core distribution.  Interactive rebase did not exist back then, and
rebase was done with "git-commit-script -m", which took an existing
commit and used its metainformation when creating a commit.  This was
almost totally different codepath from what we have now.  Not even
format-patch nor applymbox existed.

StGIT 0.4 (initial) was Jul 10, 2005, so it is _possible_ (I do not know
about plausibility) that it had an early bug that caused this, but if we
really want to figure it out we need to ask Len what was used, and I
suspect the most likely answer is "are you crazy enough to expect me to
remember?".

I am personally more interested in the other one, which was much more
recent incident, though.

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux