]> git.ipfire.org Git - thirdparty/git.git/commit
submodule-config: add subomdule config scope
authorMatthew Rogers <mattr94@gmail.com>
Mon, 10 Feb 2020 00:30:58 +0000 (00:30 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Feb 2020 18:49:12 +0000 (10:49 -0800)
commit9a83d088ee00dcdab171b2020ab334e369437a33
tree8b21354f71400dc4fca02ff91bd76210b3c91b02
parente37efa40e122c4408c89c437e8a375df2147feac
submodule-config: add subomdule config scope

Before the changes to teach git_config_source to remember scope
information submodule-config.c never needed to consider the question of
config scope.  Even though zeroing out git_config_source is still
correct and preserved the previous behavior of setting the scope to
CONFIG_SCOPE_UNKNOWN, it's better to be explicit about such situations
by explicitly setting the scope.  As none of the current config_scope
enumerations make sense we create CONFIG_SCOPE_SUBMODULE to describe the
situation.

Signed-off-by: Matthew Rogers <mattr94@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.c
config.h
submodule-config.c