Skip to content

Conversation

@ojuschugh1
Copy link
Contributor

What does this PR try to resolve?

Let git handle gc timing

Fixes #4495

We were counting packfiles ourselves, but git already does this
with gc --auto. No need to duplicate that logic.

Fixes rust-lang#4495

Let git decide when to run gc based on its own thresholds.

Signed-off-by: Ojus Chugh <[email protected]>
@rustbot rustbot added the A-git Area: anything dealing with git label Jan 2, 2026
@ojuschugh1 ojuschugh1 marked this pull request as ready for review January 2, 2026 20:10
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 2, 2026
@rustbot
Copy link
Collaborator

rustbot commented Jan 2, 2026

r? @ehuss

rustbot has assigned @ehuss.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot assigned epage and unassigned ehuss Jan 3, 2026
@epage epage changed the title Fixes issue #4495 Let git decide when to run gc Jan 5, 2026
Comment on lines -1370 to -1371
// Alright all else failed, let's start over.
reinitialize(repo)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this removed?

@epage
Copy link
Contributor

epage commented Jan 5, 2026

This doesn't seem to be addressing the review feedback left in #4656 as called out at #4495 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-git Area: anything dealing with git S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

let git decide when to run gc

4 participants