refs: allow to skip creation of reflog entries
commitfbd1a693c7343d4b37ae6d99b19f15d1293b77c2
authorPatrick Steinhardt <ps@pks.im>
Thu, 6 Jun 2024 05:29:11 +0000 (6 07:29 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 Jun 2024 16:04:31 +0000 (6 09:04 -0700)
treee2c96bb1db5765adde2e1654b3eb22cd943d0a39
parent6e1683ace981b094d9adbd08de406bf59d39b549
refs: allow to skip creation of reflog entries

The ref backends do not have any way to disable the creation of reflog
entries. This will be required for upcoming ref format migration logic
so that we do not create any entries that didn't exist in the original
ref database.

Provide a new `REF_SKIP_CREATE_REFLOG` flag that allows the caller to
disable reflog entry creation.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c
refs.h
refs/files-backend.c
refs/reftable-backend.c
t/helper/test-ref-store.c