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

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

To ensure code readability, the getter function
'repo_trust_executable_bit()' has been introduced.
Callers access this configuration by passing in 'repo'
when possible, and explicitly fall back to 'the_repository'
the rest of time.

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
environment.c
environment.h
read-cache.c
read-cache.h