git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Johan Herland
Message 2 of 2 in “git submodule foreach: Provide access to submodule name, as '$name'”
  1. git submodule foreach: Provide access to submodule name, as '$name'Johan Herland, Aug 16, 2009
  2. Mark LevedahlAug 18, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.