git/refs
Patrick Steinhardt 79fa75d499 refs/reftable: lazy-load configuration to fix chicken-and-egg
Same as with the "files" backend, the "reftable" backend also has a
chicken-and-egg problem with "onbranch" conditions. Fix this issue the
same as we did with the "files" backend by lazy-loading configuration.

Now that both the "files" and the "reftable" backend handle this
properly, add a generic test to t1400 that verifies that the user can
configure "core.logAllRefUpdates" via an "onbranch" condition. This is
mostly a nonsensical thing to do in the first place, but it serves as a
good sanity check.

Note that we had to move `should_write_log()` around so that it can
access the new `reftable_be_write_options()` function.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2026-06-26 08:27:19 -07:00
..
debug.c
files-backend.c refs/files: lazy-load configuration to fix chicken-and-egg 2026-06-26 08:27:19 -07:00
iterator.c
packed-backend.c refs: unregister reference stores from "chdir_notify" 2026-06-26 08:27:19 -07:00
packed-backend.h refs: introduce `ref_store_init_options` 2026-05-05 16:34:07 +09:00
ref-cache.c
ref-cache.h
refs-internal.h refs: move parsing of "core.logAllRefUpdates" back into ref stores 2026-06-26 08:27:19 -07:00
reftable-backend.c refs/reftable: lazy-load configuration to fix chicken-and-egg 2026-06-26 08:27:19 -07:00