Re: [RFC] Submodules in GIT
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Nov 28, 2006, 10:50 UTC
- Message-ID
- <ekh45n$rfc$1@sea.gmane.org>
- 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