diff options
| author | Tian Yuchen <cat@malon.dev> | 2026-06-10 20:43:52 +0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-06-12 05:45:09 -0700 |
| commit | 71386c21dfb7cea181df6707c34cd79b10fc0a2b (patch) | |
| tree | c60e11a2c0207741ba8fc3d959f4ce375ee5848c /git-commit-script | |
| parent | 9ac3f193c05c2237e2b14ebaa1149e9fc8a1abe0 (diff) | |
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 <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>
Diffstat (limited to 'git-commit-script')
0 files changed, 0 insertions, 0 deletions
