Re: Submodules
- From
- Sven Verdoolaege <skimo@kotnet.org>
- Date
- Aug 8, 2007, 10:27 UTC
- Message-ID
- <20070808102710.GI999MdfPADPa@greensroom.kotnet.org>
- In-Reply-To
- <a1bbc6950708071610g4ea4d874t458cec14a444b519@mail.gmail.com>
On Tue, Aug 07, 2007 at 04:10:38PM -0700, Dmitry Kakurin wrote:
Show 5 quoted lines
> Yeah, I've already went thru these. But I want (much) more details. > I can ask a bunch of random questions on this list, like: > > * Why after 'submodule update' it becomes detached, what if I want it > to stay on certain branch?
You'd need to have a way to specify which branch you want to have updated. There was some discussion about this some time ago and the general conclusion was that a detached HEAD was the best solution.
> * How do I control which branches are fetched?
Currently, you can't.
> * What if I do 'commit -a' standing in /super, will /super/submodule > commit as well?
No.
> * What if I'm standing in /super/submodule and do 'commit -a'? Will > super notice it in any way?
Any commit in the submodule will be seen as a "change" to the submodule from the perspective of the supermodule.
skimo