Re: [PATCH v3 2/3] git-submodule foreach: export .gitmodules settings as variables

2012-11-10 Thread W. Trevor King
On Fri, Nov 09, 2012 at 05:45:22PM +0100, Heiko Voigt wrote: > > can now be reduced to > > > > git submodule foreach 'git checkout $submodule_branch && git pull' > > What other use cases are there? Would the need for this maybe go away > once you had floating submodules following branches? Non

Re: [PATCH v3 2/3] git-submodule foreach: export .gitmodules settings as variables

2012-11-09 Thread Heiko Voigt
Hi, On Thu, Nov 08, 2012 at 10:35:13PM -0500, W. Trevor King wrote: > From: "W. Trevor King" > > This makes it easy to access per-submodule variables. For example, > > git submodule foreach 'git checkout $(git config --file > $toplevel/.gitmodules submodule.$name.branch) && git pull' > > c