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

Re: Can I use tmp_packs in the git root.

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 24, 2012, 18:18 UTC
Message-ID
<7vpq5bz3m1.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CABx=OHw7P5ZpdDZ8XOKT4T03FUfPNAo9oX2mLR7OB95bWkXG_w@mail.gmail.com>
Shakthi Prasad GS <shakthi.gs87@gmail.com> writes:
> Basically I use, "cat tmp_packs*|git-unpack-objects" . Log indicates
> that, objects are unpacked.
>
> Am I doing anything wrong,

If unpack is all you do, then it won't help very much, as Git only trusts objects that are reachable from refs. You would need to also make the tips of histories contained in the temp_packs* known to Git by pointing at them from somewhere in refs/ hierarchy.

See how scripted version of "git clone" used to do this by studying how contrib/examples/git-clone.sh uses refs/reference-tmp/ does the same for handling "--reference=" option.

Previous: Shakthi Prasad GS
Message 2 of 2 in “Can I use tmp_packs in the git root.”
  1. Shakthi Prasad GSSep 24, 2012
  2. Junio C HamanoSep 24, 2012

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.