Re: [PATCH] Add --no-reuse-delta, --window, and --depth options to git-gc
- From
Nicolas Pitre <nico@cam.org>
- Date
- May 8, 2007, 13:46 UTC
- Message-ID
- <alpine.LFD.0.99.0705080941350.24220@xanadu.home>
- In-Reply-To
- <7vr6ps3oyk.fsf@assigned-by-dhcp.cox.net>
On Mon, 7 May 2007, Junio C Hamano wrote:
Show 17 quoted lines
> Theodore Tso <tytso@mit.edu> writes: > > > On Mon, May 07, 2007 at 11:13:58PM -0400, Nicolas Pitre wrote: > >> ... > >> Especially if you're aware and interested in those options, you won't be > >> afraid of 'git repack -a -f -d --window=...". > >> > >> In the context of "gc", having an option that reads "window" looks a bit > >> strange too. > > > > I suppose, but you either need to then know all of the other commands > > which git-gc runs, and do them manually, skipping git-gc altogether, > > or use git-gc, and end up rewriting the pack twice,... > > If the user really wants to tweak the parameters that much and > that often, I think what Nico says, plus your pack.depth/window > configuration variables, make more sense.
Also, once you've run git-repack with -f and the window/depth params you want, those deltas will be reused as is by default afterwards even if you use git-gc. So the big repack to tighten a large repo needs only to be done once.
Nicolas