]> git.ipfire.org Git - thirdparty/git.git/commit
repo-settings: track defaults close to `struct repo_settings`
authorPatrick Steinhardt <ps@pks.im>
Thu, 12 Sep 2024 11:30:07 +0000 (13:30 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 Sep 2024 17:15:42 +0000 (10:15 -0700)
commitf1d3d07900e42d19f10be55bc2f793034e7d4198
treec2b4467cc1ab5b24dc4aa8db337d69c9827e1199
parenta0d09c56ba6c2e9fc07a19531e29c43f83c445f7
repo-settings: track defaults close to `struct repo_settings`

The default values for `struct repo_settings` are set up in
`prepare_repo_settings()`. This is somewhat different from how we
typically do this, namely by providing an `INIT` macro that sets up the
default values for us.

Refactor the code to do the same.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
repo-settings.c
repo-settings.h