git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Can I use tmp_packs in the git root.
@ 2012-09-24 17:27 Shakthi Prasad GS
  2012-09-24 18:18 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Shakthi Prasad GS @ 2012-09-24 17:27 UTC (permalink / raw)
  To: git

Hi,

I am trying implement git incremental clone/fetch
Please check https://github.com/Shakthi/gitreclone/blob/master/gitreclone
Basically, I am trying to use temporary git packs to avoid re-fetching
of the objects. However, it seems git ignores unpacked objects, and
git-fetch starts again from 0%.

Basically I use, "cat tmp_packs*|git-unpack-objects" . Log indicates
that, objects are unpacked.

Am I doing anything wrong,
Thanks
Shakthi

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

* Re: Can I use tmp_packs in the git root.
  2012-09-24 17:27 Can I use tmp_packs in the git root Shakthi Prasad GS
@ 2012-09-24 18:18 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2012-09-24 18:18 UTC (permalink / raw)
  To: Shakthi Prasad GS; +Cc: git

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.

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

end of thread, other threads:[~2012-09-24 18:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-24 17:27 Can I use tmp_packs in the git root Shakthi Prasad GS
2012-09-24 18:18 ` Junio C Hamano

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).