]> git.ipfire.org Git - thirdparty/git.git/commit
config: use repo_ignore_case() to access core.ignorecase
authorTian Yuchen <cat@malon.dev>
Fri, 19 Jun 2026 15:51:52 +0000 (23:51 +0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Jun 2026 17:04:56 +0000 (10:04 -0700)
commite6a79c9eb88e9bb07af94cc35dfdb392de56456a
tree972b09d8c66c077e62bce32937d84ff5dec1f376
parent5abac96b4be55831c9aa5135ded30a907f76018c
config: use repo_ignore_case() to access core.ignorecase

Replace the accesses to the global 'ignore_case' variable with
calls to 'repo_ignore_case(the_repository)'. This step eliminates
the 'ignore_case' global state.

Note on compat/win32/path-utils.c:
To eliminate the global state, several helper functions
(e.g. 'win32_fspathncmp()') now read from
'repo_ignore_case(the_repository)'. While this introduces
dependency on 'repository.h' into the 'compat/', it avoids massive
refactoring of the signatures across the codebase.

Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Ayush Chandekar <ayu.chandekar@gmail.com>
Mentored-by: Olamide Caleb Bello <belkid98@gmail.com>
Signed-off-by: Tian Yuchen <cat@malon.dev>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
14 files changed:
apply.c
builtin/fetch.c
builtin/mv.c
compat/win32/path-utils.c
dir.c
environment.c
environment.h
fsmonitor.c
name-hash.c
read-cache.c
refs/files-backend.c
submodule.c
t/helper/test-lazy-init-name-hash.c
unpack-trees.c