aboutsummaryrefslogtreecommitdiffstats
path: root/config.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-09-12 13:29:43 +0200
committerJunio C Hamano <gitster@pobox.com>2024-09-12 10:15:40 -0700
commitc0b03e8b6d9361277557ac93b23980d7fe6e751b (patch)
treef24eee878155feec80137e8e62c7c43ecd087bef /config.c
parentedc2c92624a5389836789579ff11417ca1c61ea0 (diff)
downloadgit-c0b03e8b6d9361277557ac93b23980d7fe6e751b.tar.gz
config: document `read_early_config()` and `read_very_early_config()`
It's not clear what `read_early_config()` and `read_very_early_config()` do differently compared to `repo_read_config()` from just looking at their names. Document both of these in the header file to clarify their intent. 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.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/config.c b/config.c
index 0b87f0f905..a8357ea954 100644
--- a/config.c
+++ b/config.c
@@ -2234,10 +2234,6 @@ void read_early_config(config_fn_t cb, void *data)
strbuf_release(&gitdir);
}
-/*
- * Read config but only enumerate system and global settings.
- * Omit any repo-local, worktree-local, or command-line settings.
- */
void read_very_early_config(config_fn_t cb, void *data)
{
struct config_options opts = { 0 };