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

Re: Big repo not shrinking on repack or gc?

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 14, 2015, 17:24 UTC
Message-ID
<xmqqmw5lb7ho.fsf@gitster.dls.corp.google.com>
In-Reply-To
<20150114143946.GE13247@inner.h.apk.li>
Andreas Krey <a.krey@gmx.de> writes:
Show 14 quoted lines
> On Wed, 14 Jan 2015 07:49:36 +0000, Jeff King wrote:
> ...
>> You don't need the "-f" here. Just "git repack -ad" should be enough
>> (and the "-f" probably makes it _way_ slower).
>
> Indeed, factor four.
>
> However, my expectation is that a repack -ad will remove all the
> old pack files, as what is in there is either referenced and put
> into the new pack, or dropped => there should be a single pack file
> afterwards.
>
> This is not the case. :-( (Done only with 1.8.2 due to
> lack of compilers for this box.)

Guess in the dark: "ls -l .git/objects/pack" Do you see any .keep files?

Previous: Andreas KreyNext: Bryan Turner
Message 6 of 11 in “Big repo not shrinking on repack or gc?”
  1. Andreas KreyJan 14, 2015
  2. Jeff KingJan 14, 2015
  3. Andreas KreyJan 14, 2015
  4. Andreas KreyJan 14, 2015
  5. Andreas KreyJan 14, 2015
  6. Junio C HamanoJan 14, 2015
  7. Bryan TurnerJan 15, 2015
  8. Andreas KreyJan 15, 2015
  9. Bryan TurnerJan 15, 2015
  10. Andreas KreyJan 15, 2015
  11. Bryan TurnerJan 15, 2015

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.