Re: git gc and git repack
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Mar 6, 2007, 21:13 UTC
- Message-ID
- <Pine.LNX.4.63.0703062211450.22628@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <loom.20070306T165455-693@post.gmane.org>
Hi,
On Tue, 6 Mar 2007, Sergio Callegari wrote:
Show 15 quoted lines
> I am puzzled by a different behavior when doing housekeeping with git-gc and > git-repack: > > [...] > Done counting 75 objects. > [...] > > while git repack -a -d gives > > Done counting 143 objects. > > I suspect, this has to to with my repository using alternates... (in > fact git-gc and git-repack start behaving identically if I pass the -l > (local) option to repack... can anyone confirm that this is the only > difference?
Yes. And if you look in git-gc, you'll see as to why: it uses the -l flag.
> Also can anybody confirm whether git repack -a -d actually includes in > the pack also _all_ the "borrowed" objects? I.e. if it is in fact a way > to convert a repository that borrows objects into one that is > self-standing?
Yes exactly.
Ciao, Dscho