Re: Re: [PATCH v3 1/3] git-submodule add: Add -r/--record option
- From
W. Trevor King <wking@tremily.us>
- Date
- Nov 23, 2012, 16:30 UTC
- Message-ID
- <20121123163024.GG2806@odin.tremily.us>
- In-Reply-To
- <20121123162329.GF2806@odin.tremily.us>
On Fri, Nov 23, 2012 at 11:23:29AM -0500, W. Trevor King wrote:
Show 12 quoted lines
> On Fri, Nov 23, 2012 at 05:03:01PM +0100, Heiko Voigt wrote: > > There is an important question still unanswered here for me: How does > > the submodule get the configuration what the local branch tracks on the > > remote side? > > A good point ;). I'm actaully using submodule.<name>.branch to store > the submodule's local branch name. The remote branch name for the > pull is implicit, and defaults to something setup according to > branch.autosetupmerge (I think). If you want to get more complicated > than this, we'll probably have to add submodule.<name>.branch and > submodule.<name>.remote sections to augment the > submodule.<name>.branch setting. I'm not sure this is worth it.
These settings are currently stored in
.git/modules/<name>/config
What we're missing is a place to store them in the .gitmodules file. I'll poke around in the module-config initialization and wait for inspiration ;).
-- This email may be signed or encrypted with GnuPG (http://www.gnupg.org). For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy