]> git.99rst.org Git - git.git/commit
environment: move object_creation_mode into repo_config_values
authorTian Yuchen <redacted>
Tue, 14 Jul 2026 03:25:24 +0000 (11:25 +0800)
committerJunio C Hamano <redacted>
Tue, 14 Jul 2026 14:30:23 +0000 (07:30 -0700)
commitb5efc34b10b3484e18e7a55260f0f06e423eba28
treed986ef92f4f0492266ccd6841de11ef3d18f9224
parent1840ca005fbabc651f9018d88f0f9d8adb91b015
environment: move object_creation_mode into repo_config_values

The global variable 'object_creation_mode' controls how Git creates
object files, specifically determining whether to use hardlinks or
renames when moving temporary files into the object database. Move
it into 'struct repo_config_values' to continue the libification
effort.

Move the 'enum object_creation_mode' definition higher up in
'environment.h' to ensure it is visible to the structure. Initialize
the per-repository value to its default macro value
OBJECT_CREATION_MODE inside 'repo_config_values_init()'.

Update configuration parsing in 'git_default_core_config()' to write
directly to the repository-specific configuration structure.

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