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

The global variable 'autorebase' dictates whether a newly created
branch should be configured to automatically rebase by default.
Move it into 'struct repo_config_values' to continue the
libification effort.

The 'enum rebase_setup_type' definition is moved higher up in
'environment.h' so that it is visible to the repository-specific
structure. The default state AUTOREBASE_NEVER is now correctly
initialized in 'repo_config_values_init()'.

Configuration parsing in 'git_default_branch_config()' is updated to
write directly to the repository's configuration instance.

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