From: Junio C Hamano Date: Mon, 01 May 2006 23:09:22 GMT Subject: Re: git-unpack-objects Message-ID: <7vu089qr4t.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <625fc13d0605011552j4189338bx14083657acffc18e@mail.gmail.com> "Josh Boyer" writes: > I was playing around with git repack and decided to "undo" the repack > I did using git-unpack objects. Below is the output: > > [jwboyer@vader linux-2.6]$ git-unpack-objects < > .git/objects/pack/pack-497d1e639572013de48eeb00cb95738d2ca959e1.pack > Unpacking 236950 objects > 100% (236950/236950) done > [jwboyer@vader linux-2.6]$ ls -l .git/objects/ > total 8 > drwxrwxr-x 2 jwboyer jwboyer 4096 May 1 17:48 info > drwxrwxr-x 2 jwboyer jwboyer 4096 May 1 17:48 pack > [jwboyer@vader linux-2.6]$ > > As you can see, the objects don't seem to get unpacked back into the > .git directory. So either I am misunderstanding what that command is > supposed to do, or it isn't working properly. > > Any ideas? unpack tries to unpack and if it already has the object it skips. If you really wanted to do it, here is a way to do so. mv .git/objets/pack/pack-49*.pack \ .git/objets/pack/pack-49*.idx . git unpack-objects