Skip to content

Commit 17e5bca

Browse files
committed
Merge branch 'sb/doc-submodule-sync-recursive' into maint
* sb/doc-submodule-sync-recursive: document submodule sync --recursive
2 parents 63b3db7 + e7220c4 commit 17e5bca

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Documentation/git-submodule.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@ sync::
237237
+
238238
"git submodule sync" synchronizes all submodules while
239239
"git submodule sync \-- A" synchronizes submodule "A" only.
240+
+
241+
If `--recursive` is specified, this command will recurse into the
242+
registered submodules, and sync any nested submodules within.
240243

241244
OPTIONS
242245
-------
@@ -364,7 +367,7 @@ the submodule itself.
364367
for linkgit:git-clone[1]'s `--reference` and `--shared` options carefully.
365368

366369
--recursive::
367-
This option is only valid for foreach, update and status commands.
370+
This option is only valid for foreach, update, status and sync commands.
368371
Traverse submodules recursively. The operation is performed not
369372
only in the submodules of the current repo, but also
370373
in any nested submodules inside those submodules (and so on).

0 commit comments

Comments
 (0)