reftable: remove name checks
commit485c63cf5c8a325d2df14f2eeb22f1a01b55a11c
authorPatrick Steinhardt <ps@pks.im>
Mon, 8 Apr 2024 12:24:06 +0000 (8 14:24 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 9 Apr 2024 00:01:41 +0000 (8 17:01 -0700)
tree2727b64370849012c57dca6760b71933a662d7c6
parent4af31dc84a1d63c0c78cb004421405aa5a4f1f80
reftable: remove name checks

In the preceding commit we have disabled name checks in the "reftable"
backend. These checks were responsible for verifying multiple things
when writing records to the reftable stack:

  - Detecting file/directory conflicts. Starting with the preceding
    commits this is now handled by the reftable backend itself via
    `refs_verify_refname_available()`.

  - Validating refnames. This is handled by `check_refname_format()` in
    the generic ref transacton layer.

The code in the reftable library is thus not used anymore and likely to
bitrot over time. Remove it.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
12 files changed:
Makefile
refs/reftable-backend.c
reftable/error.c
reftable/refname.c [deleted file]
reftable/refname.h [deleted file]
reftable/refname_test.c [deleted file]
reftable/reftable-error.h
reftable/reftable-tests.h
reftable/reftable-writer.h
reftable/stack.c
reftable/stack_test.c
t/helper/test-reftable.c