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

Re: How to manage multiple repos using submodules?

From
AWAndrew Wong <andrew.w@sohovfx.com>
Date
Apr 17, 2011, 18:42 UTC
Message-ID
<4DAB3495.3090200@sohovfx.com>
In-Reply-To
<20110417064818.GA25344@elie>
Thanks for the mail archives! They were a very good read.

The smaller projects I have are fairly independent, so there isn't a situation where a commit works well with the other commits. I just wanted some ways to split each project out to its own repo. So that when I want to do some git operations on one project, I don't have to worry about the other projects. While submodules isn't an ideal solution, it seems to be the closest. Maybe what I need from submodules is a way for the super-repo to not record the commit of the sub-repos. i.e. Just use the head of a branch. But if that's the case, maybe it's out of the scope of a SCM, since I'm not really tracking a history anymore.

I haven't tried it yet, but the mr tool you mentioned seems interesting too. I'll check it out.

Thanks! Andrew

On 11-04-17 2:48 AM, Jonathan Nieder wrote:
Show 23 quoted lines
> Hi,
>
> Jonathan Nieder wrote:
>
>> Yep, if you want to keep track of the state of a bunch of repos over
>> time, submodules are not so bad[*].
> A kind person pointed out that I left out a footnote.  I think all I
> had been planning to say is that, roughly speaking, submodules are
> about[1] saying that a specific commit is known to work well with the
> rest of the code.  A supermodule like the one discussed in [2] is only
> likely to be useful if you are interested in what historical
> combinations of repositories were published and meant to work well
> together.
>
> Ciao,
> Jonathan
>
> [1] e.g., http://thread.gmane.org/gmane.comp.version-control.git/27803/focus=27830
> [2] http://lists.x.org/archives/xorg-devel/2009-September/001966.html
> --
> 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
Previous: Jonathan NiederNext: Phil Hord
Message 4 of 5 in “How to manage multiple repos using submodules?”
  1. Andrew WongApr 16, 2011
  2. Jonathan NiederApr 16, 2011
  3. Jonathan NiederApr 17, 2011
  4. Andrew WongApr 17, 2011
  5. Phil HordApr 19, 2011

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.