Skip to content

Commit fa83339

Browse files
committed
Merge branch 'mg/doc-submodule-status-cached' into next
"git submodule status" and "git submodule status --cached" show different things, but the documentation did not cover them correctly, which has been corrected. * mg/doc-submodule-status-cached: doc: document 'git submodule status --cached'
2 parents 9585fe3 + 8d483c8 commit fa83339

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Documentation/git-submodule.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ status [--cached] [--recursive] [--] [<path>...]::
8080
does not match the SHA-1 found in the index of the containing
8181
repository and `U` if the submodule has merge conflicts.
8282
+
83+
If `--cached` is specified, this command will instead print the SHA-1
84+
recorded in the superproject for each submodule.
85+
+
8386
If `--recursive` is specified, this command will recurse into nested
8487
submodules, and show their status as well.
8588
+

0 commit comments

Comments
 (0)