From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Imran M Yousuf" Subject: Re: [PATCH/RFC v2] git-submodule: multi-level module definition Date: Wed, 5 Mar 2008 13:40:41 +0600 Message-ID: <7bfdc29a0803042340k2ea6fc1cq435205f1da71bbb0@mail.gmail.com> References: <1204646661-7776-1-git-send-email-pkufranky@gmail.com> <7bfdc29a0803041917j16112e80uc0b21707bdfd3fe@mail.gmail.com> <46dff0320803042315t2d89eb6fl325b4b2ef8ddbc44@mail.gmail.com> <46dff0320803042316m1921f657wacf63a63491bbda0@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "Git Mailing List" To: "Ping Yin" X-From: git-owner@vger.kernel.org Wed Mar 05 08:41:29 2008 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 1JWoFj-00030r-QD for gcvg-git-2@gmane.org; Wed, 05 Mar 2008 08:41:28 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755453AbYCEHko (ORCPT ); Wed, 5 Mar 2008 02:40:44 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754714AbYCEHko (ORCPT ); Wed, 5 Mar 2008 02:40:44 -0500 Received: from ug-out-1314.google.com ([66.249.92.169]:51485 "EHLO ug-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754856AbYCEHkn (ORCPT ); Wed, 5 Mar 2008 02:40:43 -0500 Received: by ug-out-1314.google.com with SMTP id z38so3134473ugc.16 for ; Tue, 04 Mar 2008 23:40:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=IcK1BpFa4iTZCYa6N6u1J9f95gGJ/PoIEawWRRikAus=; b=Tx1YpMqWrC+mgdFMb1nbnGh/SP3ghRgjGktZAZTwdLsrN27ca1nN3uUaHHKocV9LvYfCHWypxw0qQFOgH47gbbXhu5H1e+obYcalzweUxo33U5KfVTib/rQMn7SM4mmw/MFMVvbUUYSA3k03UhIKP80pTVGXKVO3aVec7d/Zvl0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=CahIvugZyRw6n06Nu6leWng0XT9rRwUpIY1m8KDlrAMLUpHg1rE6q7KUGbKpli+u5HNRX97uanTjf2IO7A/OFuWrTH326jlgznronQCb0kKjGX3mlWbRX/AQPKFi589gdHV0tVBPbXRgmXfmsdUdv4dUxoxEQiO2ZIlb2vMSn/s= Received: by 10.78.151.3 with SMTP id y3mr5321009hud.62.1204702841579; Tue, 04 Mar 2008 23:40:41 -0800 (PST) Received: by 10.78.75.8 with HTTP; Tue, 4 Mar 2008 23:40:41 -0800 (PST) In-Reply-To: <46dff0320803042316m1921f657wacf63a63491bbda0@mail.gmail.com> Content-Disposition: inline Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Wed, Mar 5, 2008 at 1:16 PM, Ping Yin wrote: > > On Wed, Mar 5, 2008 at 11:17 AM, Imran M Yousuf wrote: > > On Tue, Mar 4, 2008 at 10:04 PM, Ping Yin wrote: > > > > .gitmodules with with multiple level of indirection > > > ------------------------------------------------------ > > > [submodule "service"] > > > submodule = crawler > > > submodule = search > > > [submodule "crawler"] > > > submodule = util > > > submodule = imcrawter > > > [submodule "search"] > > > submodule = util > > > submodule = imsearch > > > > > > At this point I have few questions - Will Service have its own tree > > besides its submodules? > Now, service itself is not a submodule, and service is just a logical > name for a group of moduels. > If I am not mistaken I can do it now as well, by "git submodule add repo path". What would be the difference with this and your approach? > > > > > For your above example of .gitmodules hierarchy if I issue "git > > submodule init -m util", can you please explain what will be the > > outcome, i.e. which modules will be initialized. > > > Only the util module will be initialized using the path and url in > submodule.util.{path,url} > I got that part as thats how git-submodules currently work; Actually what I wanted to know is as util is referenced to several logical submodules, will they be initialized as well? that means wherever util is referenced it will be initialized; is that what it means? > > > > -- > > > > > > -- > Ping Yin > > > -- > To unsubscribe from this list: send the line "unsubscribe git" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- Imran M Yousuf Entrepreneur & Software Engineer Smart IT Engineering Dhaka, Bangladesh Email: imran@smartitengineering.com Mobile: +880-1711402557