Re: People unaware of the importance of "git gc"?
- From
Russ Dill <russ.dill@gmail.com>
- Date
- Sep 6, 2007, 02:44 UTC
- Message-ID
- <loom.20070906T044017-727@post.gmane.org>
- In-Reply-To
- <7vr6lcj2zi.fsf@gitster.siamese.dyndns.org>
> Ok, how about doing something like this? >
git add? merge? rebase? No, I have a sneakier place to invoke gc.
Whenever $EDITOR gets invoked. Heck, whenever git is waiting for any user input, do some gc in the background, it'd just have to be incremental so that we could pick up where we left off.
Similarly, you could mix it in with git pull/push so that while we are waiting on the network, we can do some packing.
Course, this wouldn't work for all repositories.