git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH/RFC v2] git-submodule: multi-level module definition

From
Imran M Yousuf <imyousuf@gmail.com>
Date
Mar 5, 2008, 08:03 UTC
Message-ID
<7bfdc29a0803050003j625b21a0m1f9af3f5554ef22@mail.gmail.com>
In-Reply-To
<46dff0320803042353u7e2e1789x514a2f81b7204277@mail.gmail.com>
On Wed, Mar 5, 2008 at 1:53 PM, Ping Yin <pkufranky@gmail.com> wrote:
Show 30 quoted lines
> On Wed, Mar 5, 2008 at 3:40 PM, Imran M Yousuf <imyousuf@gmail.com> wrote:
>  > On Wed, Mar 5, 2008 at 1:16 PM, Ping Yin <pkufranky@gmail.com> wrote:
>  >  >
>  >  > On Wed, Mar 5, 2008 at 11:17 AM, Imran M Yousuf <imyousuf@gmail.com> wrote:
>  >  >   > On Tue, Mar 4, 2008 at 10:04 PM, Ping Yin <pkufranky@gmail.com> 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?
>  No difference at this point. But using logical name can help add
>  modules in batch such as "git submodule add -m service"
>

Ok I am working on something similar a recurse command for git submodule; thats why I asked it. Hopefully will appear in mailing list tomorrow :).

Show 53 quoted lines
> >
>  > >
>  >  >   >
>  >  >   >  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?
>  >  >   >
>  Since the user designate only util module, we needn't automatically
>  deduce the related modules for them. And as you have said, we can't
>  deduce well since util may be referenced by several logical modules.
>
> >  >   >  --
>  >  >
>  >  >   >
>  >  >
>  >  >
>  >  >  --
>  >  >  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
>  >
>
>
>
>  --
>  Ping Yin
>
-- 
Imran M Yousuf
Entrepreneur & Software Engineer
Smart IT Engineering
Dhaka, Bangladesh
Email: imran@smartitengineering.com
Mobile: +880-1711402557
Previous: Ping Yin
Message 15 of 15 in “git-submodule: multi-level module definition”
  1. git-submodule: multi-level module definitionPing Yin, Mar 4, 2008
  2. Johannes SchindelinMar 4, 2008
  3. Ping YinMar 5, 2008
  4. Junio C HamanoMar 5, 2008
  5. Ping YinMar 6, 2008
  6. Imran M YousufMar 6, 2008
  7. Johannes SchindelinMar 6, 2008
  8. Ping YinMar 6, 2008
  9. Junio C HamanoMar 6, 2008
  10. Ping YinMar 6, 2008
  11. Ping YinMar 7, 2008
  12. Ping YinMar 5, 2008
  13. Imran M YousufMar 5, 2008
  14. Ping YinMar 5, 2008
  15. Imran M YousufMar 5, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.