]> git.99rst.org Git - git.git/commit
environment: migrate apply_default_whitespace and apply_default_ignorewhitespace
authorTian Yuchen <redacted>
Tue, 14 Jul 2026 03:25:21 +0000 (11:25 +0800)
committerJunio C Hamano <redacted>
Tue, 14 Jul 2026 14:30:23 +0000 (07:30 -0700)
commita9f5e90fb9068fd1a1a9a7c9a60f005e7ed392dd
tree96aca548a1c9ef9c3fa1b0d949a92e8d068a74bc
parent48cbe400794bd055d259143a01024da71da5fe1a
environment: migrate apply_default_whitespace and apply_default_ignorewhitespace

The global variables 'apply_default_whitespace' and
'apply_default_ignorewhitespace' are used to store the default
whitespace configuration for 'git apply'. Move these variables
into 'struct repo_config_values' to continue the libification
effort.

Dynamically allocated strings fetched via 'repo_config_get_string()'
are now tracked per-repository and safely freed in
'repo_config_values_clear()'.

As part of this transition, update 'git_apply_config()' to accept a
'struct repository *' argument rather than relying on the
'the_repository' global.

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>
apply.c
environment.c
environment.h
git clone https://git.99rst.org/PROJECT