X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.176.0/21 X-Spam-Status: No, score=-3.5 required=3.0 tests=AWL,BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, MSGID_FROM_MTA_HEADER,RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 From: Josef Weidendorfer Subject: Re: [RFC] Submodules in GIT Date: Sat, 2 Dec 2006 00:17:44 +0100 Message-ID: <200612020017.44275.Josef.Weidendorfer@gmx.de> References: <20061130170625.GH18810@admingilde.org> <200612012306.41410.Josef.Weidendorfer@gmx.de> <20061201221230.GM18810@admingilde.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit NNTP-Posting-Date: Fri, 1 Dec 2006 23:18:08 +0000 (UTC) Cc: Linus Torvalds , sf , git@vger.kernel.org Return-path: Envelope-to: gcvg-git@gmane.org X-Authenticated: #352111 User-Agent: KMail/1.9.3 In-Reply-To: <20061201221230.GM18810@admingilde.org> Content-Disposition: inline X-Y-GMX-Trusted: 0 Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Received: from vger.kernel.org ([209.132.176.167]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GqHdt-0002n0-9z for gcvg-git@gmane.org; Sat, 02 Dec 2006 00:18:05 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162217AbWLAXRr (ORCPT ); Fri, 1 Dec 2006 18:17:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1162218AbWLAXRr (ORCPT ); Fri, 1 Dec 2006 18:17:47 -0500 Received: from mail.gmx.net ([213.165.64.20]:52173 "HELO mail.gmx.net") by vger.kernel.org with SMTP id S1162217AbWLAXRq (ORCPT ); Fri, 1 Dec 2006 18:17:46 -0500 Received: (qmail invoked by alias); 01 Dec 2006 23:17:44 -0000 Received: from p5496B457.dip0.t-ipconnect.de (EHLO noname) [84.150.180.87] by mail.gmx.net (mp031) with SMTP; 02 Dec 2006 00:17:44 +0100 To: Martin Waitz Sender: git-owner@vger.kernel.org On Friday 01 December 2006 23:12, Martin Waitz wrote: > hoi :) > > On Fri, Dec 01, 2006 at 11:06:40PM +0100, Josef Weidendorfer wrote: > > > Well, I would actually argue that you may often want to have a > > > supermodule and then at least have the _option_ to decide to not > > > fetch all the submodules. > > > > If you want to allow this, you have to be able to cut off fetching the > > objects of the supermodule at borders to given submodules, the ones you > > do not want to track. With "border" I mean the submodule commit in some > > tree of the supermodule. > > I don't think this is something special to submodules. There has been > interest in checking out only a part of the tree even before talking > about submodules and I really think this feature should be independent > to submodules. After some thinking, a submodule namespace even is important for checking out only parts of a supermodule, exactly because the root of a submodule potentially can change at every commit. When checking out some arbitrary supermodule commit, how do you check that at some submodule border, the user did not want to check out the submodule at all? You need a way to check the DAG identity you are diving into at this border: lets say by going to the root commit of this DAG (!). And via this identity, you have to check whether the user had specified that he wants the submodule to be check out. Without any further meta information (indexed by a submodule name!), this information is only available from the checkout the user switched from, as there would be no file in the working tree from this submodule? Quite a pain.