config: move config_from_gitmodules to submodule-config.c
authorAntonio Ospite <redacted>
Tue, 26 Jun 2018 10:47:05 +0000 (12:47 +0200)
committerJunio C Hamano <redacted>
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 <redacted>
Acked-by: Brandon Williams <redacted>
Signed-off-by: Junio C Hamano <redacted>
config.c
config.h
submodule-config.c
submodule-config.h
git clone https://git.99rst.org/PROJECT