"Matthew Rogers via GitGitGadget" [off-list ref] writes:
From: Matthew Rogers <redacted>
There are many situations where the scope of a config command is known
beforehand, such as passing of '--local', '--file', etc. to an
invocation of git config. However, this information is lost when moving
from builtin/config.c to /config.c. This historically hasn't been a big
deal, but to prepare for the upcoming --show-scope option we teach
git_config_source to keep track of the source and the config machinery
to use that information to set current_parsing_scope appropriately.
Signed-off-by: Matthew Rogers <redacted>
---
builtin/config.c | 16 +++++++++++++---
config.c | 3 +++
config.h | 20 ++++++++++----------
3 files changed, 26 insertions(+), 13 deletions(-)
This is split from the last step in the previous round, and the
splitting makes sense.
Thanks.