From: Manish Goregaokar Date: Sat, 23 Nov 2019 05:54:28 +0000 (+0000) Subject: doc: document 'git submodule status --cached' X-Git-Tag: v2.25.0-rc0~75^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8d483c840836ef2508741cf1592c285a2cba4552;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-submodule.txt b/Documentation/git-submodule.txt index 0ed5c24dc1..f05c2b92fb 100644 --- a/Documentation/git-submodule.txt +++ b/Documentation/git-submodule.txt @@ -80,6 +80,9 @@ status [--cached] [--recursive] [--] [...]:: 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. +