]> git.ipfire.org Git - thirdparty/git.git/commit - submodule-config.h
config: move config_from_gitmodules to submodule-config.c
authorAntonio Ospite <ao2@ao2.it>
Tue, 26 Jun 2018 10:47:05 +0000 (12:47 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 Jun 2018 19:56:11 +0000 (12:56 -0700)
commitad136370b2a26fd55f446722ff7bf5b383e8eca0
tree3c1df9d011449e4720af32bf42fd52c95b4692a4
parented843436dd4924c10669820cc73daf50f0b4dabd
config: move config_from_gitmodules to submodule-config.c

The .gitmodules file is not meant as a place to store arbitrary
configuration to distribute with the repository.

Move config_from_gitmodules() out of config.c and into
submodule-config.c to make it even clearer that it is not a mechanism to
retrieve arbitrary configuration from the .gitmodules file.

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