git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

Previous: Sergio Callegari
Message 2 of 2 in “git gc and git repack”
  1. Sergio CallegariMar 6, 2007
  2. Johannes SchindelinMar 6, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.