{"thread":{"id":"31636","subject":"Can I use tmp_packs in the git root.","startedAt":"2012-09-24T17:27:09Z","lastAt":"2012-09-24T18:18:30Z","messageCount":2,"participants":["Shakthi Prasad GS","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"199829","messageId":"CABx=OHw7P5ZpdDZ8XOKT4T03FUfPNAo9oX2mLR7OB95bWkXG_w@mail.gmail.com","threadId":"31636","inReplyTo":null,"subject":"Can I use tmp_packs in the git root.","fromName":"Shakthi Prasad GS","fromEmail":"shakthi.gs87@gmail.com","sentAt":"2012-09-24T17:27:09Z","receivedAt":"2012-09-24T17:27:09Z","isPatch":false,"sender":{"key":"shakthi.gs87@gmail.com","avatar":null},"body":"Hi,\n\nI am trying implement git incremental clone/fetch\nPlease check https://github.com/Shakthi/gitreclone/blob/master/gitreclone\nBasically, I am trying to use temporary git packs to avoid re-fetching\nof the objects. However, it seems git ignores unpacked objects, and\ngit-fetch starts again from 0%.\n\nBasically I use, \"cat tmp_packs*|git-unpack-objects\" . Log indicates\nthat, objects are unpacked.\n\nAm I doing anything wrong,\nThanks\nShakthi\n"},{"id":"199836","messageId":"7vpq5bz3m1.fsf@alter.siamese.dyndns.org","threadId":"31636","inReplyTo":"CABx=OHw7P5ZpdDZ8XOKT4T03FUfPNAo9oX2mLR7OB95bWkXG_w@mail.gmail.com","subject":"Re: Can I use tmp_packs in the git root.","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2012-09-24T18:18:30Z","receivedAt":"2012-09-24T18:18:30Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Shakthi Prasad GS <shakthi.gs87@gmail.com> writes:\n\n> Basically I use, \"cat tmp_packs*|git-unpack-objects\" . Log indicates\n> that, objects are unpacked.\n>\n> Am I doing anything wrong,\n\nIf unpack is all you do, then it won't help very much, as Git only\ntrusts objects that are reachable from refs.  You would need to also\nmake the tips of histories contained in the temp_packs* known to Git\nby pointing at them from somewhere in refs/ hierarchy.\n\nSee how scripted version of \"git clone\" used to do this by studying\nhow contrib/examples/git-clone.sh uses refs/reference-tmp/ does the\nsame for handling \"--reference=\" option.\n"}]}