Re: git slow unless piped to cat
- From
Bryan Turner <bturner@atlassian.com>
- Date
- Aug 27, 2019, 21:38 UTC
- Message-ID
- <CAGyf7-EaumF+oZFUhNtifrCvqBr1DjcFh8rgQMswcpwip3Bx7w@mail.gmail.com>
- In-Reply-To
- <20190827213248.kzpszutt46ipboq4@pengutronix.de>
On Tue, Aug 27, 2019 at 2:32 PM Uwe Kleine-König <u.kleine-koenig@pengutronix.de> wrote:
Show 14 quoted lines
> > On Tue, Aug 27, 2019 at 02:59:30PM -0400, Jeff King wrote: > > On Tue, Aug 27, 2019 at 12:04:27PM +0200, Uwe Kleine-König wrote: > > > > to see the loose ones. If there are a lot, try: > > > > git pack-refs --prune --all > > > > (or just "git gc", which does this). > > This is a daily updated mirror that is also incrementally backed up. I > repack from time to time, but hesitate to do this regularily as each > time I repack the next backup run is "expensive" and I get many small > packs. I did this now anyhow.
Just noting that Jeff didn't suggest a repack; he suggested a pack-refs. This should have little, if any impact on your backup processing, because all it's going to do is rewrite the "packed-refs" file and delete loose refs. It doesn't modify any files under objects/ at all.
Bryan