From: Matthieu Moy Date: Wed, 05 Sep 2007 17:31:44 GMT Subject: Re: People unaware of the importance of "git gc"? Message-ID: In-Reply-To: Johan De Messemaeker writes: >> 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). > > I'm a git newb so I can be wrong here but ... > > Why --recursive? Why not use the submodule-information ? all projects are not necessarily subprojects of each others. I have ~/teaching/some-course/.git (well, almost) and ~/etc/.git which are two unrelated projects, and to "git gc" both of them, I need either a script, or two manual invocations. (yes, I'm really talking about something trivial) -- Matthieu