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

Re: Removing redundant packs

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 8, 2007, 21:37 UTC
Message-ID
<7vsl2cvpef.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20071208125050.GA17478@machine.or.cz>
Petr Baudis <pasky@ucw.cz> writes:
> At the same time, I have to be careful not to prune all unreferenced
> objects since they can be referenced in forks.
How about...
 (1) In each repository, run "repack -a -d".  That would ensure that
     everybody has the necessary objects that they themselves need.  By
     doing this for a repository that borrows from another makes sure
     pruning the latter would not break the former, so you start from
     leaves and move on to the repositories they borrow from.
 (2) In each repository, run "repack -a -l -d".  By doing this for a
     repository that borrows from another repacks the former without
     objects it borrows from the latter, so the former repository will
     retain what it needs but will borrow what are common from the
     latter, so you start from the repository that does not borrow from
     anybody else, and move on to the repositories that borrow from the
     one you already run this step.
Previous: Petr BaudisNext: Jeff King
Message 2 of 4 in “Removing redundant packs”
  1. Petr BaudisDec 8, 2007
  2. Junio C HamanoDec 8, 2007
  3. Jeff KingDec 8, 2007
  4. Jeff KingDec 8, 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.