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

Re: git-unpack-objects

From
Junio C Hamano <junkio@cox.net>
Date
May 1, 2006, 23:09 UTC
Message-ID
<7vu089qr4t.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<625fc13d0605011552j4189338bx14083657acffc18e@mail.gmail.com>
"Josh Boyer" <jwboyer@gmail.com> writes:
Show 18 quoted lines
> 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 <pack-49*.pack
Previous: Josh BoyerNext: Josh Boyer
Message 2 of 9 in “git-unpack-objects”
  1. Josh BoyerMay 1, 2006
  2. Junio C HamanoMay 1, 2006
  3. Josh BoyerMay 3, 2006
  4. Linus TorvaldsMay 3, 2006
  5. Josh BoyerMay 3, 2006
  6. Linus TorvaldsMay 3, 2006
  7. Josh BoyerMay 4, 2006
  8. Marco RoelandMay 4, 2006
  9. Josh BoyerMay 4, 2006

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.