From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff King Subject: Re: [PATCH] Documentation/git-bundle.txt: Dumping contents of any bundle Date: Fri, 2 Jan 2009 03:27:09 -0500 Message-ID: <20090102082709.GA3498@coredump.intra.peff.net> References: <20090101234815.GA9049@coredump.intra.peff.net> <878wputvnt.fsf@jidanni.org> <20090102071519.GA14472@spearce.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: jidanni@jidanni.org, johannes.schindelin@gmx.de, nico@cam.org, gitster@pobox.com, mdl123@verizon.net, git@vger.kernel.org To: "Shawn O. Pearce" X-From: git-owner@vger.kernel.org Fri Jan 02 09:28:37 2009 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1LIfOW-0001om-Gr for gcvg-git-2@gmane.org; Fri, 02 Jan 2009 09:28:36 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751735AbZABI1O (ORCPT ); Fri, 2 Jan 2009 03:27:14 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751647AbZABI1O (ORCPT ); Fri, 2 Jan 2009 03:27:14 -0500 Received: from peff.net ([208.65.91.99]:3058 "EHLO peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751063AbZABI1N (ORCPT ); Fri, 2 Jan 2009 03:27:13 -0500 Received: (qmail 26903 invoked by uid 111); 2 Jan 2009 08:27:10 -0000 Received: from coredump.intra.peff.net (HELO coredump.intra.peff.net) (10.0.0.2) by peff.net (qpsmtpd/0.32) with SMTP; Fri, 02 Jan 2009 03:27:10 -0500 Received: by coredump.intra.peff.net (sSMTP sendmail emulation); Fri, 02 Jan 2009 03:27:09 -0500 Content-Disposition: inline In-Reply-To: <20090102071519.GA14472@spearce.org> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: 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