Re: [PATCH] git-unbundle - unbundle objects and references for disconnected transfer.
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Feb 14, 2007, 19:45 UTC
- Message-ID
- <20070214194537.GD28290@spearce.org>
- In-Reply-To
- <11714622293142-git-send-email-mdl123@verizon.net>
Mark Levedahl <mdl123@verizon.net> wrote:
> +# get the objects > +unzip -p "$bfile" .gitBundlePack | git-unpack-objects
Since you are transporting a packfile by sneakernet it might be reasonable to assume this transfer happens infrequently. Consequently we might assume its object count exceeds transfer.unpackLimit, which means a standard fetch or push would have kept the packfile rather than unpacking it to loose objects.
So maybe use git-index-pack here to index the packfile and retain it as-is, rather than unpacking it?
-- Shawn.