Skip to contentSkip to conversation

document submodule sync --recursive

PATCH In review Stefan Beller 2 participants 5 messages Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 document submodule sync --recursive

The git-submodule(1) is inconsistent. In the synopsis, it says:

       git submodule [--quiet] sync [--recursive] [--] [<path>...]

The description of the sync does not mention --recursive, and the description of --recursive says that it is only available for foreach, update and status.

The option appears to work, so the documentation should be updated.

---

This applies on origin/master.

Thanks Per for reporting,
Stefan

 Documentation/git-submodule.txt | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Documentation/git-submodule.txt +4 -1
index f17687e..cd8d126 100644
@@ -237,6 +237,9 @@ sync::
 +
 "git submodule sync" synchronizes all submodules while
 "git submodule sync \-- A" synchronizes submodule "A" only.
++
+If `--recursive` is specified, this command will recurse into the
+registered submodules, and update any nested submodules within.
 
 OPTIONS
 -------
@@ -364,7 +367,7 @@ the submodule itself.
 for linkgit:git-clone[1]'s `--reference` and `--shared` options carefully.
 
 --recursive::
-	This option is only valid for foreach, update and status commands.
+	This option is only valid for foreach, update, status and sync commands.
 	Traverse submodules recursively. The operation is performed not
 	only in the submodules of the current repo, but also
 	in any nested submodules inside those submodules (and so on).
Signature · 1 line
2.6.1.255.gcc3df29.dirty
#1 lore raw
Quoted 4 lines · Stefan Beller

The git-submodule(1) is inconsistent. In the synopsis, it says:

       git submodule [--quiet] sync [--recursive] [--] [<path>...]
Quoted 8 lines

The description of the sync does not mention --recursive, and the description of --recursive says that it is only available for foreach, update and status.

The option appears to work, so the documentation should be updated.

Isn't this Reported-by? (genuine question; I haven't caught up with my inbox backlog and do not claim having seen everything Per wrote to this list).

Quoted 4 lines

---

This applies on origin/master.

Thanks. Should it go to maintenance track (iow, was the feature that wasn't documented already in maint)?

Quoted 30 lines

Thanks Per for reporting,
Stefan

 Documentation/git-submodule.txt | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Documentation/git-submodule.txt +4 -1
index f17687e..cd8d126 100644
@@ -237,6 +237,9 @@ sync::
 +
 "git submodule sync" synchronizes all submodules while
 "git submodule sync \-- A" synchronizes submodule "A" only.
++
+If `--recursive` is specified, this command will recurse into the
+registered submodules, and update any nested submodules within.
 
 OPTIONS
 -------
@@ -364,7 +367,7 @@ the submodule itself.
 for linkgit:git-clone[1]'s `--reference` and `--shared` options carefully.
 
 --recursive::
-	This option is only valid for foreach, update and status commands.
+	This option is only valid for foreach, update, status and sync commands.
 	Traverse submodules recursively. The operation is performed not
 	only in the submodules of the current repo, but also
 	in any nested submodules inside those submodules (and so on).
#2 lore raw
Quoted 6 lines · Junio C Hamano
Quoted 2 lines

Isn't this Reported-by? (genuine question; I haven't caught up with my inbox backlog and do not claim having seen everything Per wrote to this list).

Per wrote he tested git submodule sync --recursive with 2.6.3, so yeah the tested refers to the underlying command, not this patch. So Reported-by is better here.

Quoted 8 lines
Quoted 5 lines

---

This applies on origin/master.

Thanks. Should it go to maintenance track (iow, was the feature that wasn't documented already in maint)?

It was introduced via
(82f49f294c, Teach --recursive to submodule sync, 2012-10-26) so I guess maint is fine, too

Quoted 7 lines

Documentation/git-submodule.txt sync:: · line 242

Quoted 7 lines
Documentation/git-submodule.txt +3 -0
@@ -237,6 +237,9 @@ sync::
 +
 "git submodule sync" synchronizes all submodules while
 "git submodule sync \-- A" synchronizes submodule "A" only.
++
+If `--recursive` is specified, this command will recurse into the
+registered submodules, and update any nested submodules within.

I should have paid more attention here and s/update/sync/.

I'll prepare a resend.

#3 lore raw

PATCH v2 1/1 document submodule sync --recursive

The git-submodule(1) is inconsistent. In the synopsis, it says:

       git submodule [--quiet] sync [--recursive] [--] [<path>...]

The description of the sync does not mention --recursive, and the description of --recursive says that it is only available for foreach, update and status.

The option was introduced (82f49f294c, Teach --recursive to submodule sync, 2012-10-26) a while ago, so let's document it, too.

---

This applies on either origin/master or origin/maint.

Thanks,
Stefan

 Documentation/git-submodule.txt | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Documentation/git-submodule.txt +4 -1
index f17687e..1572f05 100644
@@ -237,6 +237,9 @@ sync::
 +
 "git submodule sync" synchronizes all submodules while
 "git submodule sync \-- A" synchronizes submodule "A" only.
++
+If `--recursive` is specified, this command will recurse into the
+registered submodules, and sync any nested submodules within.
 
 OPTIONS
 -------
@@ -364,7 +367,7 @@ the submodule itself.
 for linkgit:git-clone[1]'s `--reference` and `--shared` options carefully.
 
 --recursive::
-	This option is only valid for foreach, update and status commands.
+	This option is only valid for foreach, update, status and sync commands.
 	Traverse submodules recursively. The operation is performed not
 	only in the submodules of the current repo, but also
 	in any nested submodules inside those submodules (and so on).
Signature · 1 line
2.6.1.255.gcc3df29.dirty