summaryrefslogtreecommitdiff
path: root/commit-reach.c
diff options
context:
space:
mode:
authorGlen Choo <chooglen@google.com>2023-03-28 17:51:51 +0000
committerJunio C Hamano <gitster@pobox.com>2023-03-28 13:03:27 -0700
commit9828453ff00b330c57daa3a8b672cbb5f0cdce34 (patch)
treef89ac87704ffae762a48f44b9b1b8bf425b630b2 /commit-reach.c
parenta798a56c8aea492a2078c40e16a4a46f3fea5133 (diff)
config.c: remove current_config_kvi
Add ".config_kvi" to "struct config_reader" and replace "current_config_kvi" with "the_reader.config_kvi", plumbing "struct config_reader" where necesssary. Also, introduce a setter function for ".config_kvi", which allows us to enforce the contraint that only one of ".source" and ".config_kvi" can be set at a time (as documented in the comments). Because of this constraint, we know that "populate_remote_urls()" was never touching "current_config_kvi" when iterating through config files, so it doesn't need to store and restore that value. Signed-off-by: Glen Choo <chooglen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-reach.c')
0 files changed, 0 insertions, 0 deletions