]> git.ipfire.org Git - thirdparty/git.git/commit - submodule.c
Submodules: Add the "fetchRecurseSubmodules" config option
authorJens Lehmann <Jens.Lehmann@web.de>
Wed, 10 Nov 2010 23:55:41 +0000 (00:55 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Nov 2010 23:06:03 +0000 (15:06 -0800)
commitc1a3c3640deb8bd6929026a55b18feb1dda74e77
tree8dc29f8d815f7dff07895414f4cb5bd21857bb92
parentbe254a0ea99b441a6c514cb8b25cd72357383700
Submodules: Add the "fetchRecurseSubmodules" config option

The new boolean "fetchRecurseSubmodules" config option controls the
behavior for "git fetch" and "git pull". It specifies if these commands
should recurse into submodules and fetch new commits there too and can be
set separately for each submodule.

In the .gitmodules file "submodule.<name>.fetchRecurseSubmodules" entries
are read before looking for them in .git/config. Thus settings found in
.git/config will override those from .gitmodules, thereby allowing the
user to ignore settings given by the remote side while also letting
upstream set reasonable defaults for those users who don't have special
needs.

This configuration can be overridden by the command line option
"--[no-]recurse-submodules" of "git fetch" and "git pull".

Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
Documentation/fetch-options.txt
Documentation/gitmodules.txt
submodule.c
t/t5526-fetch-submodules.sh