From: Matthieu Moy Date: Wed, 05 Sep 2007 09:33:45 GMT Subject: Re: People unaware of the importance of "git gc"? Message-ID: In-Reply-To: <46a038f90709050227u777ed7b9w23dc3bab13c7b09b@mail.gmail.com> "Martin Langhoff" writes: > On 9/5/07, Junio C Hamano wrote: >> [alias] >> begin = gc >> leave = gc >> >> That is, the user's manual says 'at the beginning of the day, >> run "git begin" to start the day, and at the end of day, run >> "git leave" to conclude your day', without saying why ;-) > > I actually like that one ;-) There's indeed a real idea behind that. The issue is that the alias shouldn't be just "gc", but "find-all-repositories-and-do-gc-there". Currently, AFAIK, that can only be done with a (trivial) script external to git. I suppose this can easily be added to the core git porcelain. Perhaps a "git gc --recursive" would do. It doesn't solve the problem, but makes it easier to solve it (git gc --recursive in cron for example). -- Matthieu