git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Removing redundant packs
@ 2007-12-08 12:50 Petr Baudis
  2007-12-08 21:37 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Petr Baudis @ 2007-12-08 12:50 UTC (permalink / raw)
  To: git

  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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-12-08 23:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-08 12:50 Removing redundant packs Petr Baudis
2007-12-08 21:37 ` Junio C Hamano
2007-12-08 23:44   ` Jeff King
2007-12-08 23:50     ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).