-
Notifications
You must be signed in to change notification settings - Fork 2.9k
let git decide when to run gc #4495
Copy link
Copy link
Closed
Labels
A-gitArea: anything dealing with gitArea: anything dealing with gitC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewStatus: Issue or feature is accepted, and has a team member available to help mentor or review
Metadata
Metadata
Assignees
Labels
A-gitArea: anything dealing with gitArea: anything dealing with gitC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewStatus: Issue or feature is accepted, and has a team member available to help mentor or review
Type
Fields
Give feedbackNo fields configured for issues without a type.
fe5a5c7 added some logic to look into .git and run git gc if needed.
However git already has this implemented, there is a
git gc --auto.tl;dr: it checks some threshold and if it's exceeded, runs the gc, otherwise not.
Docs:
https://git-scm.com/docs/git-gc#git-gc---auto
I can have a look at making it use git gc --auto instead.
As for compatibility I don't think there will be any issues since gc --auto was added in 2007:
git/git@2c3c439