From: Jeff King Date: Fri, 02 Jan 2009 08:27:09 GMT Subject: Re: [PATCH] Documentation/git-bundle.txt: Dumping contents of any bundle Message-ID: <20090102082709.GA3498@coredump.intra.peff.net> In-Reply-To: <20090102071519.GA14472@spearce.org> On Thu, Jan 01, 2009 at 11:15:19PM -0800, Shawn O. Pearce wrote: > > OK, I wish you luck in the fruition of the new --dump-delta option, and > > can proofread the man pages involved, otherwise this is no area for > > junior programmer me. > > This is rather insane. There's very little data inside of a delta. > That's sort of the point of that level of compression, it takes > up very little disk space and yet describes the change made. > Almost nobody is going to want the delta without the base object > it applies onto. No user of git is going to need that. I'd rather > not carry dead code around in the tree for something nobody will > ever use. I somewhat agree. Obviously we can come up with contrived cases where the delta is a pure "add" and this option magically lets you recover some text via "strings" on the resulting delta dump. But in practice, it's hard to say exactly how useful it would be, especially since the "motivation" here seems to be more academic than any actual real-world problem. We can approximate with something like: git clone git://git.kernel.org/pub/scm/git/git.git cd git git bundle create ../bundle.git v1.6.0..v1.6.1 mkdir ../broken && cd ../broken sed '/^PACK/,$!d' ../bundle.git >pack git init git unpack-objects --dump-deltas