Re: [RFC] Submodules in GIT
- From
Andreas Ericsson <ae@op5.se>
- Date
- Dec 1, 2006, 18:08 UTC
- Message-ID
- <45706F8C.3070000@op5.se>
- In-Reply-To
- <20061201165708.GE18810@admingilde.org>
Martin Waitz wrote:
Show 13 quoted lines
> On Fri, Dec 01, 2006 at 05:38:44PM +0100, Andreas Ericsson wrote: >>> But if the supermodule contains changes to the submodule, you still >>> have to change the submodule. And this implies changing the submodule >>> HEAD or some branch. >>> >> Not really. I fail to see why HEAD needs to be changed so long as the >> commit is in the submodule's odb. > > Because I want the submodule to act as a normal git repository. > Please note that I also voted against changing HEAD directly, but that > the new commit which came from the supermodule is just stored in one > branch of the submodule, as part of the supermodule checkout. >
You're assuming the super- and sub-module will share HEAD, or at least ODB, I think. I'm not convinced this is necessary. Convince me. I'll go drink bear and get some dancing done while you're at it ;-)
-- Andreas Ericsson andreas.ericsson@op5.se OP5 AB www.op5.se