diff options
author | Jens Lehmann <Jens.Lehmann@web.de> | 2012-06-13 18:50:10 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-12-26 11:59:05 -0800 |
commit | d4fa852597ffab711675528f2baccb1a0fb3bc82 (patch) | |
tree | 7dc8adec59992ce41b57730fb3acca261ce25895 /Documentation | |
parent | de40c413f0e600668db1ccbf5bdf34694c29843f (diff) | |
download | git-jl/submodule-recursive-checkout.tar.gz |
Teach checkout to recursively checkout submodulesjl/submodule-recursive-checkout
Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git-checkout.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/git-checkout.txt b/Documentation/git-checkout.txt index 91294f89c8..aabcc657b2 100644 --- a/Documentation/git-checkout.txt +++ b/Documentation/git-checkout.txt @@ -225,6 +225,14 @@ This means that you can use `git checkout -p` to selectively discard edits from your current working tree. See the ``Interactive Mode'' section of linkgit:git-add[1] to learn how to operate the `--patch` mode. +--[no-]recurse-submodules:: + Using --recurse-submodules will update the content of all initialized + submodules according to the commit recorded in the superproject.If + local modifications in a submodule would be overwritten the checkout + will fail until `-f` is used. If nothing (or --no-recurse-submodules) + is used, the work trees of submodules will not be updated, only the + hash recorded in the superproject will be changed. + <branch>:: Branch to checkout; if it refers to a branch (i.e., a name that, when prepended with "refs/heads/", is a valid ref), then that |