]> git.ipfire.org Git - thirdparty/git.git/commit
environment: move has_symlinks into repo_config_values
authorTian Yuchen <cat@malon.dev>
Mon, 20 Jul 2026 10:53:35 +0000 (18:53 +0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 20 Jul 2026 14:37:05 +0000 (07:37 -0700)
commitdf2bc04e6937ba35b9a905a65dd0137627b46c8b
treeace98aaec029d81ceac347f3f05eeaa4eed3c252
parent99c79dabb09a298863cd96398305d2957e60d022
environment: move has_symlinks into repo_config_values

Move the global 'has_symlinks' configuration into the
repository-specific 'repo_config_values' struct.

Introduce 'repo_has_symlinks()' getter for readability.
Callers access this configuration by passing in 'repo'
when possible, and explicitly fall back to
'the_repository' the rest of the time.

Introduce 'platform_has_symlinks()' macro to allow
platform specific-customization, primarily to help MinGW.
Platforms can override this in their respective headers.

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>
apply.c
combine-diff.c
compat/mingw.c
compat/mingw.h
entry.c
environment.c
environment.h
git-compat-util.h
read-cache.c
read-cache.h