aboutsummaryrefslogtreecommitdiff
path: root/environment.h
diff options
context:
space:
mode:
authorAyush Chandekar <ayu.chandekar@gmail.com>2025-06-10 18:32:20 +0530
committerJunio C Hamano <gitster@pobox.com>2025-06-10 10:10:38 -0700
commitb1d47b464e553331c555f122c5e341dfbfb618bd (patch)
tree0cbf0b6d2c635c89fb014be019aa1fb9dd725100 /environment.h
parent4c0e625c091d4c648cec7319bafaed3cc81658e5 (diff)
downloadgit-b1d47b464e553331c555f122c5e341dfbfb618bd.tar.xz
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 'environment.h')
-rw-r--r--environment.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/environment.h b/environment.h
index 3d98461a06..9a3d05d414 100644
--- a/environment.h
+++ b/environment.h
@@ -155,7 +155,6 @@ extern int pack_compression_level;
extern unsigned long pack_size_limit_cfg;
extern int max_allowed_tree_depth;
-extern int core_preload_index;
extern int precomposed_unicode;
extern int protect_hfs;
extern int protect_ntfs;