]> git.ipfire.org Git - thirdparty/git.git/blobdiff - Documentation/git-status.txt
short status: improve reporting for submodule changes
[thirdparty/git.git] / Documentation / git-status.txt
index ba873657cf2f9d139d2ddb7c19e6865cc159a64d..67f1a910f3c330a2e7c7389e43e7c120a54ec882 100644 (file)
@@ -181,6 +181,15 @@ in which case `XY` are `!!`.
     !           !    ignored
     -------------------------------------------------
 
+Submodules have more state and instead report
+               M    the submodule has a different HEAD than
+                    recorded in the index
+               m    the submodule has modified content
+               ?    the submodule has untracked files
+since modified content or untracked files in a submodule cannot be added
+via `git add` in the superproject to prepare a commit.
+
+
 If -b is used the short-format status is preceded by a line
 
     ## branchname tracking info
@@ -210,6 +219,8 @@ field from the first filename).  Third, filenames containing special
 characters are not specially formatted; no quoting or
 backslash-escaping is performed.
 
+Any submodule changes are reported as modified `M` instead of `m` or single `?`.
+
 Porcelain Format Version 2
 ~~~~~~~~~~~~~~~~~~~~~~~~~~