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

[RFC/PATCH 0/6] Git submodule: 'foreach' enhancements and nested submodule handling

From
Johan Herland <johan@herland.net>
Date
Aug 19, 2009, 01:45 UTC
Message-ID
<1250646324-961-1-git-send-email-johan@herland.net>
Hi,

This patch series attempts to expand 'git submodule' command in two regards:

1. Clean up, selftest, and enhance the 'git submodule foreach' command.
2. Provide better handling for nested submodules where the user want to
   operate on _all_ submodules simultenously.

The first 3 patches in the series are fairly trivial and straightforward. The last 3 patches are slightly more RFC in nature, although their implementation is still fairly straighforward.

Patch 3/6 is a resend of a patch that I sent stand-alone on 2009-08-16.
Have fun! :)
...Johan
Johan Herland (6):
  git submodule: Cleanup usage string and add option parsing to cmd_foreach()
  Add selftest for 'git submodule foreach'
  git submodule foreach: Provide access to submodule name, as '$name'
  git submodule foreach: Add --recursive to recurse into nested submodules
  git submodule update: Introduce --recursive to update nested submodules
  git submodule status: Add --recursive to recurse into nested submodules
 Documentation/git-submodule.txt |   23 ++++-
 git-submodule.sh                |   79 ++++++++++++--
 t/t7407-submodule-foreach.sh    |  223 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 313 insertions(+), 12 deletions(-)
 create mode 100755 t/t7407-submodule-foreach.sh
Next: Johan Herland
Message 1 of 8 in “Git submodule: 'foreach' enhancements and nested submodule handling”
  1. 0/6 Git submodule: 'foreach' enhancements and nested submodule handlingJohan Herland, Aug 19, 2009
  2. 1/6 git submodule: Cleanup usage string and add option parsing to cmd_foreach()Johan Herland, Aug 19, 2009
  3. 2/6 Add selftest for 'git submodule foreach'Johan Herland, Aug 19, 2009
  4. 3/6 git submodule foreach: Provide access to submodule name, as '$name'Johan Herland, Aug 19, 2009
  5. 4/6 git submodule foreach: Add --recursive to recurse into nested submodulesJohan Herland, Aug 19, 2009
  6. 5/6 git submodule update: Introduce --recursive to update nested submodulesJohan Herland, Aug 19, 2009
  7. 6/6 git submodule status: Add --recursive to recurse into nested submodulesJohan Herland, Aug 19, 2009
  8. 7/6 git clone: Add --recursive to automatically checkout (nested) submodulesJohan Herland, Aug 19, 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.