threads / discuss / 15922

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

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

## tl;dr

2 messages between Oct 15, 2008 and Oct 15, 2008.

replies: 1people: 2as markdown or json

skillzero@gmail.com· Oct 15, 2008, 21:16 UTC · lore

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).

Avery Pennarun· Oct 15, 2008, 21:57 UTC · re: skillzero@gmail.com · lore

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

On Wed, Oct 15, 2008 at 5:16 PM,  <skillzero@gmail.com> wrote:
> Is there a way to have a super module point to a branch of a submodule
> instead of a specific commit ID?

In some sense, this is too simple to be supported by git-submodule. You might want to try the "ext" tool instead: http://nopugs.com/2008/09/06/ext-tutorial

Have fun,
Avery

← back to recent threads