mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
4c0e625c09
commit
b1d47b464e
@@ -113,9 +113,6 @@ const char *comment_line_str = "#";
|
||||
char *comment_line_str_to_free;
|
||||
int auto_comment_line_char;
|
||||
|
||||
/* Parallel index stat data preload? */
|
||||
int core_preload_index = 1;
|
||||
|
||||
/* This is set by setup_git_directory_gently() and/or git_default_config() */
|
||||
char *git_work_tree_cfg;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user