summaryrefslogtreecommitdiff
path: root/reftable/refname_test.c
AgeCommit message (Collapse)AuthorFilesLines
2021-10-08reftable: implement refname validationLibravatar Han-Wen Nienhuys1-0/+102
The packed/loose format has restrictions on refnames: a and a/b cannot coexist. This limitation does not apply to reftable per se, but must be maintained for interoperability. This code adds validation routines to abort transactions that are trying to add invalid names. Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>