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

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

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Mar 4, 2008, 16:12 UTC
Message-ID
<alpine.LSU.1.00.0803041608420.22527@racer.site>
In-Reply-To
<1204646661-7776-1-git-send-email-pkufranky@gmail.com>
Hi,
On Wed, 5 Mar 2008, Ping Yin wrote:
Show 17 quoted lines
> [submodule "service"]
>    submodule = crawler
>    submodule = search
> [submodule "crawler"]
>    submodule = util
>    submodule = imcrawter
> [submodule "search"]
>    submodule = util
>    submodule = imsearch
> [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

In "git remote", we also have a notion of groups. It looks much nicer, IMO. So why not do this?

[submodules]
	service = crawler search
	crawler = util imcrawler
	search = util imsearch
[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

However, I think that being able to specify submodule groups recursively is only adding to confusion, so I would even prefer this:

[submodules]
	service = util imcrawler imsearch
	crawler = util imcrawler
	search = util imsearch
[...]

Ciao, Dscho

Previous: Ping YinNext: Ping Yin
Message 2 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.