aboutsummaryrefslogtreecommitdiffstats
path: root/config.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-08-13 11:13:46 +0200
committerJunio C Hamano <gitster@pobox.com>2024-08-13 10:01:02 -0700
commit2ea853646807f36ccd8d5c8e30b146c33f4ca3eb (patch)
tree8af27c43fbadb5f624b5d2c2c9c684d086f1a3ab /config.c
parent909a2bfb1ff29df388be58b777c4c71186a3e90f (diff)
downloadgit-2ea853646807f36ccd8d5c8e30b146c33f4ca3eb.tar.gz
config: expose `repo_config_clear()`
While we already have `repo_config_clear()` as an alternative to `git_config_clear()` that doesn't rely on `the_repository`, it is not exposed to callers outside of the config subsystem. Do so. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index ac89b708e7..476cd73c9e 100644
--- a/config.c
+++ b/config.c
@@ -2564,7 +2564,7 @@ static void git_config_check_init(struct repository *repo)
repo_read_config(repo);
}
-static void repo_config_clear(struct repository *repo)
+void repo_config_clear(struct repository *repo)
{
if (!repo->config || !repo->config->hash_initialized)
return;