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

[PATCH v6 1/5] doc: list all commands affected by submodule.recurse

From
DRDamien Robert <damien.olivier.robert@gmail.com>
Date
Apr 6, 2020, 13:57 UTC
Message-ID
<20200406135709.60041-2-damien.olivier.robert+git@gmail.com>
In-Reply-To
<20200406135709.60041-1-damien.olivier.robert+git@gmail.com>

Note that `ls-files` is not affected, even though it has a `--recurse-submodules` option, so list it as an exception too.

Signed-off-by: Damien Robert <damien.olivier.robert+git@gmail.com>
---
 Documentation/config/submodule.txt | 5 +++--
 Documentation/gitsubmodules.txt    | 3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/Documentation/config/submodule.txt b/Documentation/config/submodule.txt
index b33177151c..5962f41ead 100644
--- a/Documentation/config/submodule.txt
+++ b/Documentation/config/submodule.txt
@@ -59,8 +59,9 @@ submodule.active::
 
 submodule.recurse::
 	Specifies if commands recurse into submodules by default. This
-	applies to all commands that have a `--recurse-submodules` option,
-	except `clone`.
+	applies to all commands that have a `--recurse-submodules` option
+	(`checkout`, `fetch`, `grep`, `pull`, `push`, `read-tree`, `reset`,
+	`restore` and `switch`) except `clone` and `ls-files`.
 	Defaults to false.
 
 submodule.fetchJobs::
diff --git a/Documentation/gitsubmodules.txt b/Documentation/gitsubmodules.txt
index c476f891b5..f9f4e65c9e 100644
--- a/Documentation/gitsubmodules.txt
+++ b/Documentation/gitsubmodules.txt
@@ -271,7 +271,8 @@ will not be checked out by default; You can instruct 'clone' to recurse
 into submodules. The 'init' and 'update' subcommands of 'git submodule'
 will maintain submodules checked out and at an appropriate revision in
 your working tree. Alternatively you can set 'submodule.recurse' to have
-'checkout' recursing into submodules.
+'checkout' recursing into submodules (note that 'submodule.recurse' also
+affects other git commands, see linkgit:git-config[1] for a complete list).
 
 
 SEE ALSO
-- 
Patched on top of v2.26.0-106-g9fadedd637 (git version 2.26.0)
Previous: Damien RobertNext: Damien Robert
Message 2 of 7 in “doc: --recurse-submodules”
  1. 0/5 doc: --recurse-submodulesDamien Robert, Apr 6, 2020
  2. 1/5 doc: list all commands affected by submodule.recurseDamien Robert, Apr 6, 2020
  3. 3/5 doc: explain how to deactivate submodule.recurse completelyDamien Robert, Apr 6, 2020
  4. 2/5 doc: document --recurse-submodules for reset and restoreDamien Robert, Apr 6, 2020
  5. 4/5 doc: be more precise on (fetch|push).recurseSubmodulesDamien Robert, Apr 6, 2020
  6. 5/5 doc: --recurse-submodules mostly applies to active submodulesDamien Robert, Apr 6, 2020
  7. Philippe BlainApr 16, 2020

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.