From: Derrick Stolee <derrickstolee@github.com>
To: Patrick Steinhardt <ps@pks.im>, Jeff King <peff@peff.net>
Cc: git@vger.kernel.org
Subject: Re: commit-graph overflow generation chicken and egg
Date: Mon, 4 Jul 2022 14:50:57 -0600 [thread overview]
Message-ID: <a154e109-3f4c-c500-3365-d47879abf30d@github.com> (raw)
In-Reply-To: <YsLE+DVa5Hd/NqdD@ncase>
On 7/4/22 4:46 AM, Patrick Steinhardt wrote:
> On Fri, Jul 01, 2022 at 02:07:03PM +0200, Patrick Steinhardt wrote:
> While I still haven't been able to reproduce the error, I did find a
> different error. Here's the reproducer, which works with Git v2.37.0 and
> older:
Hi Patrick. Thanks for taking a close look. There is
an issue here, and it's due to using a negative
timestamp:
> + GIT_COMMITTER_DATE='1970-01-01T00:00:00 +0100'
Because of the "+0100" in the time zone, this date
becomes a negative value. The commit-graph does not
store dates with more than 34 bits (and Git does
not handle negative timestamps very well? Peff can
clarify here).
The commit-graph could certainly warn better here to
say we do not have enough date bits to store this
timestamp (the same would happen with a date beyond
2138 or something like that).
However, this is a failure since the commit-graph first
started parsing dates in 177722b3442 (commit: integrate
commit graph with commit parsing, 2018-04-10).
Thanks,
-Stolee
next prev parent reply other threads:[~2022-07-04 20:51 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-08 19:33 commit-graph overflow generation chicken and egg Jeff King
2022-06-08 20:08 ` Derrick Stolee
2022-06-08 23:17 ` Jeff King
2022-07-01 12:06 ` Patrick Steinhardt
2022-07-04 10:46 ` Patrick Steinhardt
2022-07-04 20:50 ` Derrick Stolee [this message]
2022-07-05 21:03 ` Will Chandler
2022-07-05 22:28 ` Taylor Blau
2022-07-06 8:52 ` Jeff King
2022-07-06 9:11 ` Jeff King
2022-06-09 7:49 ` Ævar Arnfjörð Bjarmason
2022-06-09 15:26 ` Jeff King
2022-06-09 15:39 ` Derrick Stolee
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=a154e109-3f4c-c500-3365-d47879abf30d@github.com \
--to=derrickstolee@github.com \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
--cc=ps@pks.im \
/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 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 NNTP newsgroup(s).