summaryrefslogtreecommitdiff
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorTian Yuchen <cat@malon.dev>2026-07-14 11:25:17 +0800
committerJunio C Hamano <gitster@pobox.com>2026-07-14 07:30:23 -0700
commit7488b9d1fd505ce1194b98893508fa5b194cf0cd (patch)
treec98bcf0550c26788dd87dae922733e64fcbea8d1 /contrib/persistent-https
parent0201d2783e6317c7b76e9c511cbfcfa73fdc17b1 (diff)
environment: move excludes_file into repo_config_values
The global variable 'excludes_file' is used to track the path to the global ignore file. If this variable is NULL, 'setup_standard_excludes()' in 'dir.c' forcefully evaluates and assigns the XDG default path to it. Continue the libification effort by encapsulating this lazy-loading fallback logic into a proper getter and moving the variable into 'struct repo_config_values'. Since 'excludes_file' is a dynamically allocated string, it requires proper heap memory management. It is safely freed using the newly introduced 'repo_config_values_clear()' function when the repository is torn down. 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 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions