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

Re: [RFC] What to you think about a loose status for submodules?

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 22, 2009, 19:58 UTC
Message-ID
<7vvdi7fbg3.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20091022194446.GA3944@book.hvoigt.net>
Heiko Voigt <hvoigt@hvoigt.net> writes:
Show 21 quoted lines
> I am not sure what is the best way to create such a group mapping using
> our config files though. I would like to allow multiple groups/views to
> have the submodules like:
>
> [submodule "doc"]
> 	path = Documentation
> 	views = doc
>
> [submodule "help"]
> 	path = help
> 	views = doc
>
> [submodule "core"]
> 	path = core
> 	views = doc default
>
> [submodule "app"]
> 	path = app
> 	views = default
>
> What do you think?
That, or alternatively:
    [submodule "doc"]
        path = Documentation
    [submodule "help"]
        path = help
    [submodule "core"]
        path = core
    [submodule "app"]
        path = app
    [view "default"]
        modules = core app
    [view "doc"]
        modules = core doc help
Or even (mimicking the way how "git remote" defines remote groups):
    [submodule "doc"]
        path = Documentation
    [submodule "help"]
        path = help
    [submodule "core"]
        path = core
    [submodule "app"]
        path = app
    [submodule]
        default = core app
        doc = core doc help
Previous: Heiko VoigtNext: Heiko Voigt
Message 4 of 6 in “[RFC] What to you think about a loose status for submodules?”
  1. Heiko VoigtOct 21, 2009
  2. Junio C HamanoOct 21, 2009
  3. Heiko VoigtOct 22, 2009
  4. Junio C HamanoOct 22, 2009
  5. Heiko VoigtJan 20, 2010
  6. Junio C HamanoJan 20, 2010

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.