]> git.ipfire.org Git - thirdparty/git.git/commit - submodule-config.c
submodule-config: add helper to get 'update-clone' config from .gitmodules
authorAntonio Ospite <ao2@ao2.it>
Tue, 26 Jun 2018 10:47:07 +0000 (12:47 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 Jun 2018 19:56:12 +0000 (12:56 -0700)
commit057449978efe3e803d1d1ec382e1f238a405a833
tree7b2df9fccfa6f1e581f23c8255090773b1110be7
parent71a6953d164012647fcb9682e4e705ba61b95929
submodule-config: add helper to get 'update-clone' config from .gitmodules

Add a helper function to make it clearer that retrieving 'update-clone'
configuration from the .gitmodules file is a special case supported
solely for backward compatibility purposes.

This change removes one direct use of 'config_from_gitmodules' for
options not strictly related to submodules: "submodule.fetchjobs" does
not describe a property of a submodule, but a behavior of other commands
when dealing with submodules, so it does not really belong to the
.gitmodules file.

This is in the effort to communicate better that .gitmodules is not to
be used as a mechanism to store arbitrary configuration in the
repository that any command can retrieve.

Signed-off-by: Antonio Ospite <ao2@ao2.it>
Acked-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c
submodule-config.c
submodule-config.h