From: "Imran M Yousuf" <imyousuf@gmail.com>
To: "Ping Yin" <pkufranky@gmail.com>
Cc: "Junio C Hamano" <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: [PATCH/RFC v2] git-submodule: multi-level module definition
Date: Thu, 6 Mar 2008 08:16:28 +0600 [thread overview]
Message-ID: <7bfdc29a0803051816r752d3027yff83a78e1769216a@mail.gmail.com> (raw)
In-Reply-To: <46dff0320803051754o4b45222es524a62a7cac50b94@mail.gmail.com>
On Thu, Mar 6, 2008 at 7:54 AM, Ping Yin <pkufranky@gmail.com> wrote:
>
> On Thu, Mar 6, 2008 at 7:18 AM, Junio C Hamano <gitster@pobox.com> wrote:
> > Ping Yin <pkufranky@gmail.com> writes:
> >
> > > This patch allows multi-level module definition in .gitmodules as
> > > Linus and Sven Verdoolaege etc. have suggested in mails
> > > "Let .git/config specify the url for submodules"
> > > (http://article.gmane.org/gmane.comp.version-control.git/48939).
> > >
> > > Following shows an example of such a .gitmodules.
> > >
> > > .gitmodules with with multiple level of indirection
> > > ------------------------------------------------------
> > > [submodule "service"]
> > > submodule = crawler
> > > submodule = search
> > > ...
> >
> > > [submodule "util"]
> > > url = git://xyzzy/util.git
> > > [submodule "imsearch"]
> > > path = search/imsearch
> > > url = git://xyzzy/imsearch.git
> > > [submodule "imcrawler"]
> > > path = crawler/imcrawter
> > > url = git://xyzzy/imcrawter.git
> > > ------------------------------------------------------
> >
> > I would agree that allowing the user to use a short-hand to name a group
> > of modules the user is interested in would be a good idea, but I think
> > .gitmodules is a wrong place to do so. The grouping is a user preference,
> > isn't it?
> >
> > The place the owner of the repository (not the project) expresses which
> > modules are of interest, what transports she wants to use to access it,
> > etc. is $GIT_DIR/config, and .gitmodules is a vehicle to supply hints to
> > be used when the user populates that information.
> >
> Not always the case. In my company environment, we have many
> submodules and have a unified hierachy of modules, and we use the same
> transports ssh. So after top maintainer give the basic module hierachy
> config in .gitmodules, other people needn't and even shouldn't
> consider changing these common config. If other people have special
> needs, they can of course edit .git/config to add new hierachy or
> override existing ones in .gitmodules. However, it's better to put the
> common config in .gitmodules to pass to every one.
>
I am a bit confused about why we need it as from discussion earlier we
see that there isn't much difference with the currently available
mechanism. I still do not see any advantage over the currently
available system other than having an alternate way to do a thing
already can be done.
> I think this may not be a special requirement for my company, so
> letting .gitmodule record the common module hierachy should be a
> common requirement in a company environment.
>
Actually our company has a high modular structure, using maven makes
it easier to main and link modules. I would find an in place submodule
much more handy for such requirement.
>
> --
> 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
next prev parent reply other threads:[~2008-03-06 2:17 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-04 16:04 [PATCH/RFC v2] git-submodule: multi-level module definition Ping Yin
2008-03-04 16:12 ` Johannes Schindelin
2008-03-05 2:13 ` Ping Yin
[not found] ` <7bfdc29a0803041917j16112e80uc0b21707bdfd3fe@mail.gmail.com>
[not found] ` <46dff0320803042315t2d89eb6fl325b4b2ef8ddbc44@mail.gmail.com>
2008-03-05 7:16 ` Ping Yin
2008-03-05 7:40 ` Imran M Yousuf
2008-03-05 7:53 ` Ping Yin
2008-03-05 8:03 ` Imran M Yousuf
2008-03-05 23:18 ` Junio C Hamano
2008-03-06 1:54 ` Ping Yin
2008-03-06 2:16 ` Imran M Yousuf [this message]
2008-03-06 2:32 ` Johannes Schindelin
2008-03-06 5:18 ` Ping Yin
2008-03-06 3:48 ` Junio C Hamano
2008-03-06 5:48 ` Ping Yin
2008-03-07 1:43 ` Ping Yin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7bfdc29a0803051816r752d3027yff83a78e1769216a@mail.gmail.com \
--to=imyousuf@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=pkufranky@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).