Submodules: Add the new "fetch" config option for fetch and pull
commit4e0fb797bf18164fe9ca779e2c5480c7411e8d09
authorJens Lehmann <Jens.Lehmann@web.de>
Mon, 30 Aug 2010 17:37:47 +0000 (30 19:37 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Sep 2010 23:07:05 +0000 (1 16:07 -0700)
tree66009936e216569e1d0c9a058c3b1bc7aab2d60f
parent496b35e7e06e054de769c3f9131381fb3304b936
Submodules: Add the new "fetch" config option for fetch and pull

The new boolean "fetch" config option controls the default 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.

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

This configuration can be overridden by the command line option
"--[no-]recursive" 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
builtin/fetch.c
submodule.c
submodule.h
t/t5526-fetch-submodules.sh