# Superproject branch tracking?

2 messages from 2009-01-21 to 2009-01-21. Participants: Jon Loeliger, David Aguilar.
Thread: https://gitlist.dev/t/17294

## Jon Loeliger, 2009-01-21 21:22

Subject: Superproject branch tracking?
Message-ID: <49779220.5000900@freescale.com>
URL: https://gitlist.dev/e/49779220.5000900%40freescale.com

```
Guys,

Can someone tell me what the current best practice
to have a Git supermodule maintain a branch that is
actively tracking a similarly named branch in all of
the submodules?

That is, I want have a scenario where I would like
the master branch of a super-project to always (or on
demand) reflect the current HEAD of the master branch
in each of the submodules.

Does anyone have a script up their sleeve that I can
use as a hook in the super to notice updates to a submodule
and cause it to scurry around the sub-modules and create
a new (updated) commit in the super?

Thanks,
jdl

```

## David Aguilar, 2009-01-21 23:25

Subject: Re: Superproject branch tracking?
Message-ID: <402731c90901211525i2db339a6t94a4478268dfcf1a@mail.gmail.com>
URL: https://gitlist.dev/e/402731c90901211525i2db339a6t94a4478268dfcf1a%40mail.gmail.com
In-Reply-To: <49779220.5000900@freescale.com>

```
On Wed, Jan 21, 2009 at 1:22 PM, Jon Loeliger <jdl@freescale.com> wrote:
> Guys,
>
> Can someone tell me what the current best practice
> to have a Git supermodule maintain a branch that is
> actively tracking a similarly named branch in all of
> the submodules?
>
> That is, I want have a scenario where I would like
> the master branch of a super-project to always (or on
> demand) reflect the current HEAD of the master branch
> in each of the submodules.
>
> Does anyone have a script up their sleeve that I can
> use as a hook in the super to notice updates to a submodule
> and cause it to scurry around the sub-modules and create
> a new (updated) commit in the super?
>
> Thanks,
> jdl
>

Hello

Have you seen Shawn's repo tool?

    http://kerneltrap.org/mailarchive/git/2008/10/22/3763214

It might not do *exactly* what you're looking for, but it is magical.

There's also a repo-discuss google group where repo-specific questions
can be addressed.


-- 
    David

```
