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

Removing redundant packs

From
Petr Baudis <pasky@ucw.cz>
Date
Dec 8, 2007, 12:50 UTC
Message-ID
<20071208125050.GA17478@machine.or.cz>
  Hi,
  before exporting whole repo.or.cz over rsync for mirroring, I would
like to clean up the worst repositories (esp. linux-2.6 repositories)
whose objects database looks absolutely horrible now.
  At the same time, I have to be careful not to prune all unreferenced
objects since they can be referenced in forks.
  How would you go about it? My idea was to do a fresh cummulative pack
of all referenced objects with
	git repack -a

and then remove packs that contain _only_ objects that are already in the fresh pack. But I have trouble with the second step; a very naive grep loop ran for about a day when I stopped it and it was nowhere near the half of the packs yet. I didn't figure out how to make use of git-pack-redundant either.

  Does anyone have any hints?
  Thanks!
-- 
				Petr "Pasky" Baudis
We don't know who it was that discovered water, but we're pretty sure
that it wasn't a fish.		-- Marshall McLuhan
Next: Junio C Hamano
Message 1 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.