summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorPhilippe Blain <levraiphilippeblain@gmail.com>2019-11-24 02:01:35 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-11-24 06:03:18 (GMT)
commitf0e58b3fe85970cfac20cd10545dd91a65094887 (patch)
tree68e546a09b81401067020008063a770f21400d1e /Documentation
parent5fa0f5238b0cd46cfe7f6fa76c3f526ea98148d9 (diff)
downloadgit-f0e58b3fe85970cfac20cd10545dd91a65094887.zip
git-f0e58b3fe85970cfac20cd10545dd91a65094887.tar.gz
git-f0e58b3fe85970cfac20cd10545dd91a65094887.tar.bz2
doc: mention that 'git submodule update' fetches missing commits
'git submodule update' will fetch new commits from the submodule remote if the SHA-1 recorded in the superproject is not found. This was not mentioned in the documentation. Helped-by: Junio C Hamano <gitster@pobox.com> Helped-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Philippe Blain <levraiphilippeblain@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-submodule.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/git-submodule.txt b/Documentation/git-submodule.txt
index 0ed5c24..4beb569 100644
--- a/Documentation/git-submodule.txt
+++ b/Documentation/git-submodule.txt
@@ -133,7 +133,8 @@ update [--init] [--remote] [-N|--no-fetch] [--[no-]recommend-shallow] [-f|--forc
+
--
Update the registered submodules to match what the superproject
-expects by cloning missing submodules and updating the working tree of
+expects by cloning missing submodules, fetching missing commits
+in submodules and updating the working tree of
the submodules. The "updating" can be done in several ways depending
on command line options and the value of `submodule.<name>.update`
configuration variable. The command line option takes precedence over