]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc: mention that 'git submodule update' fetches missing commits
authorPhilippe Blain <levraiphilippeblain@gmail.com>
Sun, 24 Nov 2019 02:01:35 +0000 (21:01 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sun, 24 Nov 2019 06:03:18 +0000 (15:03 +0900)
'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>
Documentation/git-submodule.txt

index 0ed5c24dc1ce553d0b0ac90d49fcf161a3320474..4beb569ae53092eb52c6ba8e1150f8e84e9111da 100644 (file)
@@ -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