bleachbit / wishlist

Wishlist enhancements related to BleachBit
GNU General Public License v3.0
7 stars 1 forks source link

Git garbage colletion #91

Open Avamander opened 4 years ago

Avamander commented 4 years ago

It would be nice if bleachbit ran Git's garbage collection on the repositories it finds. Optionally with the --aggressive option. This might provide a considerable reduction in repository size in some cases. I'm currently using a find command to optimize my repositories and it's really rather great.

Documentation: https://git-scm.com/docs/git-gc

az0 commented 4 years ago

That makes sense to me.

I think maybe you can get this going yourself using search="deepscan" combined with action="process". If you don't figure it out first, I will look into it later.

Avamander commented 4 years ago

One issue is that bleachbit should configure the parallelism of Git, or in some other way limit the amount of memory Git uses. If it doesn't there's a high risk that the system will run out of memory, because Git is blissfully unaware of any memory limits.