Re: [PATCH] send-pack --keep: do not explode into loose objects on the receiving end.
- From
Shawn Pearce <spearce@spearce.org>
- Date
- Oct 29, 2006, 07:56 UTC
- Message-ID
- <20061029075638.GB3847@spearce.org>
- In-Reply-To
- <7vwt6j4l77.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> wrote:
> This adds "keep-pack" extension to send-pack vs receive pack protocol, > and makes the receiver invoke "index-pack --stdin --fix-thin".
I'm torn on this. I see that keeping a pack vs. exploding to loose objects is a local repository decision and thus should be determined by the receiving repository, not the sending one.
I was thinking of just reading the pack header in receive-pack, checking the object count, and if its over a configured threshold call index-pack rather than unpack-objects. Unfortunately I just realized that if we read the pack header to make that decision then its gone and the child process won't have it. :-(