]> git.99rst.org Git - git.git/commit
refs: move parsing of "core.logAllRefUpdates" back into ref stores
authorPatrick Steinhardt <redacted>
Thu, 25 Jun 2026 09:20:05 +0000 (11:20 +0200)
committerJunio C Hamano <redacted>
Fri, 26 Jun 2026 15:27:19 +0000 (08:27 -0700)
commita9e4ce0aec738ca3047d77f3781159424703a2a3
tree7ad898315f20033495a5434531e0c3cdfa906b1a
parent432b2e4f9ebd2cbafab641619067dce4d3f223bc
refs: move parsing of "core.logAllRefUpdates" back into ref stores

In cc42c88945 (refs: extract out reflog config to generic layer,
2026-05-04) we have refactored how we parse "core.logAllRefUpdates" so
that it happens in the generic layer. Unfortunately, this has worsened a
preexisting issue where we may recurse when creating the reference store
because of a chicken-and-egg problem between parsing the configuration
and evaluating "onbranch" conditions.

Prepare for a fix by essentially reverting that change so that we handle
this setting in the respective backends again. The backends are already
parsing other configuration anyway, so by moving the logic back in there
we can ensure that all backend configuration is parsed the same way.

Signed-off-by: Patrick Steinhardt <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/checkout.c
refs.c
refs.h
refs/files-backend.c
refs/refs-internal.h
refs/reftable-backend.c
repo-settings.c
repo-settings.h
setup.c
git clone https://git.99rst.org/PROJECT