git/refs
Karthik Nayak 466a3a1afd refs/reftable: add fsck check for checking the table name
Add glue code in 'refs/reftable-backend.c' which calls the reftable
library to perform the fsck checks. Here we also map the reftable errors
to Git' fsck errors.

Introduce a check to validate table names for a given reftable stack.
Also add 'badReftableTableName' as a corresponding error within Git. The
reftable specification mentions:

  It suggested to use
  ${min_update_index}-${max_update_index}-${random}.ref as a naming
  convention.

So treat non-conformant file names as warnings.

While adding the fsck header to 'refs/reftable-backend.c', modify the
list to maintain lexicographical ordering.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2025-10-07 09:22:58 -07:00
..
debug.c refs: remove unused headers 2025-10-07 09:22:57 -07:00
files-backend.c refs: move consistency check msg to generic layer 2025-10-07 09:22:57 -07:00
iterator.c refs: selectively set prefix in the seek functions 2025-07-15 11:54:20 -07:00
packed-backend.c Merge branch 'ps/config-wo-the-repository' 2025-08-04 08:10:33 -07: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 ref-cache: use 'size_t' instead of int for length 2025-07-28 14:16:36 -07:00
ref-cache.h ref-cache: remove unused function 'find_ref_entry()' 2025-07-15 11:54:19 -07:00
refs-internal.h refs: selectively set prefix in the seek functions 2025-07-15 11:54:20 -07:00
reftable-backend.c refs/reftable: add fsck check for checking the table name 2025-10-07 09:22:58 -07:00