]> git.99rst.org Git - git.git/commit
environment: remove the global variable 'core_preload_index'
authorAyush Chandekar <redacted>
Tue, 10 Jun 2025 13:02:20 +0000 (18:32 +0530)
committerJunio C Hamano <redacted>
Tue, 10 Jun 2025 17:10:38 +0000 (10:10 -0700)
commitb1d47b464e553331c555f122c5e341dfbfb618bd
tree0cbf0b6d2c635c89fb014be019aa1fb9dd725100
parent4c0e625c091d4c648cec7319bafaed3cc81658e5
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 <redacted>
Mentored-by: Ghanshyam Thakkar <redacted>
Signed-off-by: Ayush Chandekar <redacted>
Signed-off-by: Junio C Hamano <redacted>
config.c
environment.c
environment.h
preload-index.c
git clone https://git.99rst.org/PROJECT