Documentation/checkout: clarify submodule HEADs to be detached
PATCH 1/1 Documentation/checkout: clarify submodule HEADs to be detached
Signed-off-by Stefan Beller <[email protected]>
---
On top of sb/submodule-recursive-checkout-detach-head
I also checked other man pages such as read-tree, which already mentions the behavior as the fix implements:
--[no-]recurse-submodules
Using --recurse-submodules will update the content of all initialized submodules according to the commit recorded in the superproject by calling read-tree recursively, also setting the submodules HEAD to be detached at that commit.
Documentation/git-checkout.txt | 2 ++ 1 file changed, 2 insertions(+)
Documentation/git-checkout.txt +2 -0
@@ -262,6 +262,8 @@ section of linkgit:git-add[1] to learn how to operate the `--patch` mode. local modifications in a submodule would be overwritten the checkout will fail unless `-f` is used. If nothing (or --no-recurse-submodules) is used, the work trees of submodules will not be updated. + Just like linkgit:git-submodule[1], this will detach the + submodules HEAD. <branch>:: Branch to checkout; if it refers to a branch (i.e., a name that,
Signature · 1 line
2.14.0.rc0.3.g6c2e499285