]> git.ipfire.org Git - thirdparty/git.git/commit
refs: extract out reflog config to generic layer
authorKarthik Nayak <karthik.188@gmail.com>
Mon, 4 May 2026 17:44:07 +0000 (19:44 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 May 2026 07:34:07 +0000 (16:34 +0900)
commitcc42c88945753363d67d130c79640e3c682e1334
tree7b2caebfc10ac767a0ff126190bbdbb496eecec4
parentd194dffcfd3ad26105149f8e0fbd3b6537bf1986
refs: extract out reflog config to generic layer

The reference backends need to know when to create reflog entries, this
is dictated by the 'core.logallrefupdates' config. Instead of relying on
the backends to call `repo_settings_get_log_all_ref_updates()` to obtain
this config value, let's do this in the generic layer and pass down the
value to the backends.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c
refs/files-backend.c
refs/refs-internal.h
refs/reftable-backend.c