diff options
| author | Ayush Chandekar <ayu.chandekar@gmail.com> | 2025-06-10 18:32:20 +0530 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-06-10 10:10:38 -0700 |
| commit | b1d47b464e553331c555f122c5e341dfbfb618bd (patch) | |
| tree | 0cbf0b6d2c635c89fb014be019aa1fb9dd725100 /config.c | |
| parent | 4c0e625c091d4c648cec7319bafaed3cc81658e5 (diff) | |
| download | git-b1d47b464e553331c555f122c5e341dfbfb618bd.tar.gz | |
environment: remove the global variable 'core_preload_index'
The global variable 'core_preload_index' is used in a single function
named 'preload_index()' in "preload-index.c". Move its declaration inside
that function, removing unnecessary global state.
This change is part of an ongoing effort to eliminate global variables,
improve modularity and help libify the codebase.
Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Ghanshyam Thakkar <shyamthakkar001@gmail.com>
Signed-off-by: Ayush Chandekar <ayu.chandekar@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'config.c')
| -rw-r--r-- | config.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -1595,11 +1595,6 @@ static int git_default_core_config(const char *var, const char *value, return 0; } - if (!strcmp(var, "core.preloadindex")) { - core_preload_index = git_config_bool(var, value); - return 0; - } - if (!strcmp(var, "core.createobject")) { if (!value) return config_error_nonbool(var); |
