submodule: add get_submodule_config helper funtion
authorW. Trevor King <wking@tremily.us>
Tue, 11 Dec 2012 18:58:15 +0000 (13:58 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Dec 2012 05:46:49 +0000 (21:46 -0800)
commit88ce00c378f709937c74a97037aa2692b883d683
treecd386d890880620a39cb74d963e17dfa6823de3e
parentb7973fbbc3f8f72df352f4ef1a2ff325db92c36f
submodule: add get_submodule_config helper funtion

Several submodule configuration variables
(e.g. fetchRecurseSubmodules) are read from .gitmodules with local
overrides from the usual git config files.  This shell function mimics
that logic to help initialize configuration variables in
git-submodule.sh.

Signed-off-by: W. Trevor King <wking@tremily.us>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-submodule.sh