From: W. Trevor King Date: Thu, 09 Jan 2014 02:22:22 GMT Subject: Re: [RFC v2] submodule: Respect requested branch on all clones Message-ID: <20140109022222.GP29954@odin.tremily.us> In-Reply-To: On Thu, Jan 09, 2014 at 02:09:37AM +0100, Francesco Pretto wrote: > 2014/1/9 W. Trevor King : > > [branch "my-feature"] > > remote = origin > > merge = refs/heads/my-feature > > [submodule "submod"] > > local-branch = "my-feature" > > > > and I don't think Git's config supports such nesting. > > Aesthetically, It doesn't look very nice. The INI syntax does not lend itself to easy nesting, but I'm pretty sure some mapping from (, ) to is what we need for submodule checkouts. I'm just not sure where local overides to the per-branch .gitmodules should live. We could turn it around, and store: [superproject ""] local-branch = "" in .git/modules//config, with the UI: $ cd submodule $ git config superproject..local-branch = Not beautiful, but maybe a bit more palatable, and already supported by Git's current config parser. That's enough that I can work up a patch that will hopefully clarify my position ;). Cheers, Trevor -- 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