Re: [PATCH] git submodule foreach: Provide access to submodule name, as '$name'
- From
Mark Levedahl <mlevedahl@gmail.com>
- Date
- Aug 18, 2009, 00:54 UTC
- Message-ID
- <4A89FBCF.1080400@gmail.com>
- In-Reply-To
- <200908160310.08459.johan@herland.net>
Johan Herland wrote:
Show 10 quoted lines
> 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 <johan@herland.net> > --- >
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