Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

64bit dates #892

Merged
merged 14 commits into from
Jun 11, 2023
Merged

64bit dates #892

merged 14 commits into from
Jun 11, 2023

Conversation

Byron
Copy link
Owner

@Byron Byron commented Jun 10, 2023

This is related to git handling far-future commit dates, see test.
Also, we definitely support more than 32 bits for timestamps now.

Tasks

  • gix-date with 64 bit
  • add support for core.commitGraph, mention commitGraph.readChangedPaths, and mention commitGraph.generationVersion
  • commit-graph with 64 bit/generation 2 support This always worked, even though some numbers can't be represented, we are good for a long time though.
  • support for corrected generation numbers - cannot find a test that truly shows need for this portion of code. Those tests that do don't seem to actually test for it, or test something else. Abandoned for now.

That way, dates beyond 2038 are supported.

Further, we rename `Time::seconds_since_unix_epoch` to `seconds`, and remove `seconds()`
as there now is a new type, `SecondsSinceUnixEpoch`. In the same vein, we rename
`Time::offset_in_seconds` to `offset` as it now has at type `OffsetInSeconds`.
@Byron Byron mentioned this pull request Jun 10, 2023
27 tasks
@Byron Byron force-pushed the future-dates branch 4 times, most recently from 1efd2bb to c73b792 Compare June 11, 2023 12:53
Previously, we would always use the commitgraph when available, but now we only do so
if the `core.commitGraph` option is set.
…h up to `gix` level.

This is merely a debug tool to learn about generation numbers.
All commit-graph commands now operate on a repository.
…nerations.

This leads to greater correctness of generation numbers when dealing with certain kinds of commit-graphs.
@Byron Byron merged commit 8d2e6a9 into main Jun 11, 2023
@Byron Byron deleted the future-dates branch June 11, 2023 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant