Add prune=24h option to garbage collection RPC
Problem to solve
When a project maintainer is trying to cleanup large files or sensitive data and use the Repository Cleanup feature, git gc
is triggered, but it won't impact recently added objects because Git defaults to 2 weeks for expiry.
Proposal
Add an option to the RPC to force --prune=now
option
Edited by Zeger-Jan van de Weg