From: Jakub Narebski Date: Tue, 28 Nov 2006 10:50:10 GMT Subject: Re: [RFC] Submodules in GIT Message-ID: In-Reply-To: <200611281029.11918.andyparkins@gmail.com> Andy Parkins wrote: > How does the supermodule know which > branch to track in the submodule?  Does it simply track HEAD or when the > submodule is added to the supermodule is it told which branch to track?  I > suppose it's got to be HEAD really hasn't it? I think that the proper place for that would be supermodule _index_. The supermodule tree would have commit entry, and the index would have symbolic branch (and perhaps some infor about where to find refs for submodule). This I guess breaks index abstraction slightly, but on the other hand allows for tracking non-HEAD branch of submodule, and for submodule to not know about supermodule at all... -- Jakub Narebski Warsaw, Poland ShadeHawk on #git