Re: People unaware of the importance of "git gc"?
- From
Matthieu Moy <matthieu.moy@imag.fr>
- Date
- Sep 5, 2007, 09:33 UTC
- Message-ID
- <vpqzm01v4li.fsf@bauges.imag.fr>
- In-Reply-To
- <46a038f90709050227u777ed7b9w23dc3bab13c7b09b@mail.gmail.com>
"Martin Langhoff" <martin.langhoff@gmail.com> writes:
Show 10 quoted lines
> On 9/5/07, Junio C Hamano <gitster@pobox.com> 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