]> git.ipfire.org Git - thirdparty/git.git/commit
refs: introduce `ref_store_init_options`
authorKarthik Nayak <karthik.188@gmail.com>
Mon, 4 May 2026 17:44:06 +0000 (19:44 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 May 2026 07:34:07 +0000 (16:34 +0900)
commitd194dffcfd3ad26105149f8e0fbd3b6537bf1986
tree15b20cb978a2ed83d2fee53c67effb97d575f1a8
parent8a349a1d7970ed2c6fcac8ea0c1d641384ad082d
refs: introduce `ref_store_init_options`

Reference backends are initiated via the `init()` function. When
initiating the function, the backend is also provided flags which denote
the access levels of the initiator. Create a new structure
`ref_store_init_options` to house such options and move the access flags
to this structure.

This allows easier extension of providing further options to the
backends. In the following commit, we'll also provide config around
reflog creation to the backends via the same structure.

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/packed-backend.c
refs/packed-backend.h
refs/refs-internal.h
refs/reftable-backend.c