From: Mark Levedahl Date: Tue, 18 Aug 2009 00:54:39 GMT Subject: Re: [PATCH] git submodule foreach: Provide access to submodule name, as '$name' Message-ID: <4A89FBCF.1080400@gmail.com> In-Reply-To: <200908160310.08459.johan@herland.net> Johan Herland wrote: > The argument to 'git submodule foreach' already has access to the variables > '$path' (the path to the submodule, relative to the superproject) and '$sha1' > (the submodule commit recorded by the superproject). > > This patch adds another variable -- '$name' -- which contains the name of the > submodule, as recorded in the superproject's .gitmodules file. > > Signed-off-by: Johan Herland > --- > This patch *looks* ok to me, but I'm out of the office for most of August so I cannot actually test this code for another couple of weeks. Mark