* does git prune packs? @ 2005-09-14 11:13 Jeff Garzik 2005-09-14 15:08 ` Linus Torvalds 0 siblings, 1 reply; 4+ messages in thread From: Jeff Garzik @ 2005-09-14 11:13 UTC (permalink / raw) To: Git Mailing List Does git-prune-packed eliminate packs that have been superceded by other packs? Jeff ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: does git prune packs? 2005-09-14 11:13 does git prune packs? Jeff Garzik @ 2005-09-14 15:08 ` Linus Torvalds 2005-09-14 15:14 ` Jeff Garzik 0 siblings, 1 reply; 4+ messages in thread From: Linus Torvalds @ 2005-09-14 15:08 UTC (permalink / raw) To: Jeff Garzik; +Cc: Git Mailing List On Wed, 14 Sep 2005, Jeff Garzik wrote: > > Does git-prune-packed eliminate packs that have been superceded by other > packs? Nope. Pretty hard to do. Unless you just repack everything, at which point git repack -a -d will do the right thing. Linus ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: does git prune packs? 2005-09-14 15:08 ` Linus Torvalds @ 2005-09-14 15:14 ` Jeff Garzik 2005-09-14 15:30 ` Linus Torvalds 0 siblings, 1 reply; 4+ messages in thread From: Jeff Garzik @ 2005-09-14 15:14 UTC (permalink / raw) To: Linus Torvalds; +Cc: Git Mailing List Linus Torvalds wrote: > > On Wed, 14 Sep 2005, Jeff Garzik wrote: > >>Does git-prune-packed eliminate packs that have been superceded by other >>packs? > > > Nope. Pretty hard to do. Unless you just repack everything, at which point > > git repack -a -d > > will do the right thing. I never repack, I just use your packs. Easier on my hard disk, vastly reduces upload time (cable modem == slow uploads), since I can ssh to master.kernel.org and hardlink, and easier on kernel.org. I'll remove the old packs manually. Thanks, Jeff ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: does git prune packs? 2005-09-14 15:14 ` Jeff Garzik @ 2005-09-14 15:30 ` Linus Torvalds 0 siblings, 0 replies; 4+ messages in thread From: Linus Torvalds @ 2005-09-14 15:30 UTC (permalink / raw) To: Jeff Garzik; +Cc: Git Mailing List On Wed, 14 Sep 2005, Jeff Garzik wrote: > > I never repack, I just use your packs. Oh, ok. Then, do something like this: mv .git/objects/pack .git/objects/old-packs mkdir .git/objects/pack for i in .git/objects/old-packs/*.pack do echo $i: git-unpack-objects < $i done and it will do the right thing. Doing the right thing means, among other things, that if an object already exists in an alternate object directory, it won't be written to disk again. (So if you have an "alternates" file pointing to my objects, and your packs contain mainly/only objects that I've pulled, basically nothing will actually be unpacked.) After that, do a git-fsck-cache to make sure everything looks good, and just "rm -rf .git/objects/old-packs". And yes, we could make something like this a helper script. NOTE! During the unpacking, the repository may not be usable, so make sure that nobody else tries to access it while you do this. Linus ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-09-14 15:30 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2005-09-14 11:13 does git prune packs? Jeff Garzik 2005-09-14 15:08 ` Linus Torvalds 2005-09-14 15:14 ` Jeff Garzik 2005-09-14 15:30 ` Linus Torvalds
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).