]> git.ipfire.org Git - thirdparty/git.git/commit - git-submodule.sh
submodule update: learn `--[no-]recommend-shallow` option
authorStefan Beller <sbeller@google.com>
Thu, 26 May 2016 21:59:43 +0000 (14:59 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 May 2016 17:40:46 +0000 (10:40 -0700)
commitabed000acafd8aa86e02bcbb65fc1a8e4f06b8a0
treededda0e06c5bcf2af6a694fffba498f0fa7607bd
parent37f52e93441e1da00c9c9824ed03cd074d77f43a
submodule update: learn `--[no-]recommend-shallow` option

Sometimes the history of a submodule is not considered important by
the projects upstream. To make it easier for downstream users, allow
a boolean field 'submodule.<name>.shallow' in .gitmodules, which can
be used to recommend whether upstream considers the history important.

This field is honored in the initial clone by default, it can be
ignored by giving the `--no-recommend-shallow` option.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-submodule.txt
builtin/submodule--helper.c
git-submodule.sh
t/t5614-clone-submodules.sh