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

2 messages from 2008-10-15 to 2008-10-15. Participants: skillzero@gmail.com, Avery Pennarun.
Thread: https://gitlist.dev/t/15922

## skillzero@gmail.com, 2008-10-15 21:16

Subject: Super module pointing to submodule branch instead of a specific commit?
Message-ID: <2729632a0810151416l3a16f6d6x4e32e457d26496bc@mail.gmail.com>
URL: https://gitlist.dev/e/2729632a0810151416l3a16f6d6x4e32e457d26496bc%40mail.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).

```

## Avery Pennarun, 2008-10-15 21:57

Subject: Re: Super module pointing to submodule branch instead of a specific commit?
Message-ID: <32541b130810151457q66a97ffob18d7154acbbacb3@mail.gmail.com>
URL: https://gitlist.dev/e/32541b130810151457q66a97ffob18d7154acbbacb3%40mail.gmail.com
In-Reply-To: <2729632a0810151416l3a16f6d6x4e32e457d26496bc@mail.gmail.com>

```
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

```
