]> git.99rst.org Git - git.git/commit
environment: move 'protect_hfs' and 'protect_ntfs' into 'repo_config_values'
authorTian Yuchen <redacted>
Wed, 10 Jun 2026 12:43:52 +0000 (20:43 +0800)
committerJunio C Hamano <redacted>
Fri, 12 Jun 2026 12:45:09 +0000 (05:45 -0700)
commit71386c21dfb7cea181df6707c34cd79b10fc0a2b
treec60e11a2c0207741ba8fc3d959f4ce375ee5848c
parent9ac3f193c05c2237e2b14ebaa1149e9fc8a1abe0
environment: move 'protect_hfs' and 'protect_ntfs' into 'repo_config_values'

Move the global 'protect_hfs' and 'protect_ntfs' configurations
into the repository-specific 'repo_config_values' struct.
This will help with the elimination of 'the_repository'

To ensure code readability, the getter functions
'repo_protect_hfs()' and 'repo_protect_ntfs()'
have been introduced.

For now, associated functions access this configuration by
explicitly falling back to 'the_repository', which needs to
be addressed in the future.

Note: In 't/helper/test-path-utils.c', there is a function
'protect_ntfs_hfs_benchmark()' where these two global
variables are used as loop iterators. New local variables
have been created to replace them.

Mentored-by: Christian Couder <redacted>
Mentored-by: Ayush Chandekar <redacted>
Mentored-by: Olamide Caleb Bello <redacted>
Signed-off-by: Tian Yuchen <redacted>
Signed-off-by: Junio C Hamano <redacted>
compat/mingw.c
environment.c
environment.h
read-cache.c
t/helper/test-path-utils.c
git clone https://git.99rst.org/PROJECT