]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc: document 'git submodule status --cached'
authorManish Goregaokar <manishsmail@gmail.com>
Sat, 23 Nov 2019 05:54:28 +0000 (05:54 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 24 Nov 2019 04:52:29 +0000 (13:52 +0900)
'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 <manishsmail@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-submodule.txt

index 0ed5c24dc1ce553d0b0ac90d49fcf161a3320474..f05c2b92fb1e469d3912fe9384867336204a7513 100644 (file)
@@ -80,6 +80,9 @@ status [--cached] [--recursive] [--] [<path>...]::
        does not match the SHA-1 found in the index of the containing
        repository and `U` if the submodule has merge conflicts.
 +
+If `--cached` is specified, this command will instead print the SHA-1
+recorded in the superproject for each submodule.
++
 If `--recursive` is specified, this command will recurse into nested
 submodules, and show their status as well.
 +