Re: [RFC v3 3/4] submodule: Teach 'add' about a configurable local-branch

2014-01-14 Thread W. Trevor King
On Wed, Jan 15, 2014 at 01:18:12AM +0100, Francesco Pretto wrote: > I've matured this opinion about "local-branch" some days ago, but I > couldn't join the discussion because I was extremely busy. Hope it's > is still current (and correct). I think the discussion is still open, but actions are pos

Re: [RFC v3 3/4] submodule: Teach 'add' about a configurable local-branch

2014-01-14 Thread Francesco Pretto
I've matured this opinion about "local-branch" some days ago, but I couldn't join the discussion because I was extremely busy. Hope it's is still current (and correct). 2014/1/9 W. Trevor King > > @@ -339,7 +339,19 @@ module_clone() > echo "gitdir: $rel/$a" >"$sm_path/.git" > > re

[RFC v3 3/4] submodule: Teach 'add' about a configurable local-branch

2014-01-08 Thread W. Trevor King
From: "W. Trevor King" This patch teaches 'git submodule add' to look for a preferred local-branch, and to checkout that branch after the initial clone. The local branch will always point at the commit checked out by the internal 'git clone' operation. For example: $ git submodule add git://e