summaryrefslogtreecommitdiff
path: root/t/t4013/diff.diff_--stat_initial..side
diff options
context:
space:
mode:
authorOlamide Caleb Bello <belkid98@gmail.com>2026-06-02 18:09:19 +0100
committerJunio C Hamano <gitster@pobox.com>2026-06-03 08:36:48 +0900
commitdfa01cee1cb4d5e6c8567828370eb4785f7c33a1 (patch)
treedb765c7cde764a5e2c443377e1452be78df02d01 /t/t4013/diff.diff_--stat_initial..side
parent6f00fc0499851d33ef6eae3f8633cb67808834aa (diff)
environment: move "core_sparse_checkout_cone" into `struct repo_config_values`
The `core.sparseCheckoutCone` configuration was previously stored in an uninitialized global `int` variable, risking cross‑repository state leakage. Move it into `repo_config_values`, where eagerly‑parsed repository configuration lives. `core.sparseCheckoutCone` is parsed eagerly because it determines the fundamental sparse‑checkout mode and is consulted very early during repository setup; a lazy parse could leave the sparse‑checkout state undefined and complicate libification. This preserves the existing behavior while tying the value to the repository from which it was read, avoiding cross‑ repository state leakage and continuing the effort to reduce reliance on global configuration state. Update all references to use `repo_config_values()`. Mentored-by: Christian Couder <christian.couder@gmail.com> Mentored-by: Usman Akinyemi <usmanakinyemi202@gmail.com> Signed-off-by: Olamide Caleb Bello <belkid98@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_--stat_initial..side')
0 files changed, 0 insertions, 0 deletions