submodule: add get_submodule_config helper funtion
authorW. Trevor King <wking@tremily.us>
Fri, 30 Nov 2012 16:52:36 +0000 (11:52 -0500)
committerW. Trevor King <wking@tremily.us>
Sat, 1 Dec 2012 22:05:03 +0000 (17:05 -0500)
commit436a73a8fdc8f0695aa597d53483d4c4bae16ebb
tree5de2fccb44a8c66d3b61ab31a956ccd9065eb7e5
parent8c7a786b6c8eae8eac91083cdc9a6e337bc133b0
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>
git-submodule.sh