Skip to content

Commit 8d483c8

Browse files
Manishearthgitster
authored andcommitted
doc: document 'git submodule status --cached'
'git submodule status --cached' reports the SHAs recorded in the index of the superproject, instead of the SHAs that are checked out in the submodule. Signed-off-by: Manish Goregaokar <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5fa0f52 commit 8d483c8

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)