git/refs
Patrick Steinhardt 0ff9cf40b2 refs/files: extract function to check single ref
When checking the consistency of references we create a directory
iterator and then verify each single reference in a loop. The logic to
perform the actual checks is embedded into that loop, which makes it
hard to reuse. But In a subsequent commit we're about to introduce a
second path that wants to verify references.

Prepare for this by extracting the logic to check a single reference
into a standalone function.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2026-01-12 06:55:40 -08:00
..
debug.c Merge branch 'gf/maintenance-is-needed-fix' 2025-12-30 12:58:20 +09:00
files-backend.c refs/files: extract function to check single ref 2026-01-12 06:55:40 -08:00
iterator.c refs: drop infrastructure to peel via iterators 2025-11-04 07:32:25 -08:00
packed-backend.c Merge branch 'kn/maintenance-is-needed' 2025-11-21 09:14:17 -08:00
packed-backend.h refs/files: use heuristic to decide whether to repack with `--auto` 2024-09-04 08:03:24 -07:00
ref-cache.c refs: drop infrastructure to peel via iterators 2025-11-04 07:32:25 -08:00
ref-cache.h ref-cache: remove unused function 'find_ref_entry()' 2025-07-15 11:54:19 -07:00
refs-internal.h refs: add a `optimize_required` field to `struct ref_storage_be` 2025-11-10 09:28:48 -08:00
reftable-backend.c Merge branch 'kn/maintenance-is-needed' 2025-11-21 09:14:17 -08:00