let git decide when to run gc #4495
Labels
A-git
Area: anything dealing with git
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
S-accepted
Status: Issue or feature is accepted, and has a team member available to help mentor or review
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
The text was updated successfully, but these errors were encountered: