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

Super module pointing to submodule branch instead of a specific commit?

From
Sskillzero@gmail.com <skillzero@gmail.com>
Date
Oct 15, 2008, 21:16 UTC
Message-ID
<2729632a0810151416l3a16f6d6x4e32e457d26496bc@mail.gmail.com>

Is there a way to have a super module point to a branch of a submodule instead of a specific commit ID? I have a repository of common code I'd like to use with a several different projects (each project has a repository of its own). I want those super repositories to reference the "stable" branch of this shared repository so that whenever they pull one of these super modules, they get any changes made to stable branch of the shared repository. When creating a tag of the super module, I still want it to tag based on the commit ID of the submodule (like I think it does today).

>From what I can tell, I seem to have to commit to the submodule then

commit the new commit ID of the submodule to every super module it is a member of. That's somewhat tedious, but the larger problem is that not all everyone with commit access to the submodule will has access to all the super modules (they may not even know they exist).

Next: Avery Pennarun
Message 1 of 2 in “Super module pointing to submodule branch instead of a specific commit?”
  1. skillzero@gmail.comOct 15, 2008
  2. Avery PennarunOct 15, 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.