git/refs
Patrick Steinhardt 2e573d61ff refs: prepare `refs_init_db()` for initializing worktree refs
The purpose of `refs_init_db()` is to initialize the on-disk files of a
new ref database. The function is quite inflexible right now though, as
callers can neither specify the `struct ref_store` nor can they pass any
flags.

Refactor the interface to accept both of these. This will be required so
that we can start initializing per-worktree ref databases via the ref
backend instead of open-coding the initialization in "worktree.c".

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2024-01-08 13:17:30 -08:00
..
debug.c refs: prepare `refs_init_db()` for initializing worktree refs 2024-01-08 13:17:30 -08:00
files-backend.c refs: prepare `refs_init_db()` for initializing worktree refs 2024-01-08 13:17:30 -08:00
iterator.c treewide: remove unnecessary cache.h inclusion from several sources 2023-03-21 10:56:51 -07:00
packed-backend.c refs: prepare `refs_init_db()` for initializing worktree refs 2024-01-08 13:17:30 -08:00
packed-backend.h Revert "Merge branch 'ps/avoid-unnecessary-hook-invocation-with-packed-refs'" 2022-04-13 15:51:33 -07:00
ref-cache.c ref-cache.c: fix prefix matching in ref iteration 2023-10-09 15:53:13 -07:00
ref-cache.h hash-ll.h: split out of hash.h to remove dependency on repository.h 2023-04-24 12:47:32 -07:00
refs-internal.h refs: prepare `refs_init_db()` for initializing worktree refs 2024-01-08 13:17:30 -08:00