diff options
author | Han-Wen Nienhuys <hanwen@google.com> | 2021-10-07 23:25:12 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-10-08 20:45:48 +0300 |
commit | acb533440fc0ed32e195987b9946e948a9706560 (patch) | |
tree | 5d15160dab669d0e7ddcf1b07cee068816b0eaae /t/helper/test-reftable.c | |
parent | 1ae2b8cda84c4c662d8f60898e034d9643f097b6 (diff) |
reftable: implement refname validation
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>
Diffstat (limited to 't/helper/test-reftable.c')
-rw-r--r-- | t/helper/test-reftable.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/helper/test-reftable.c b/t/helper/test-reftable.c index 8087f2da4e..c8db6852c3 100644 --- a/t/helper/test-reftable.c +++ b/t/helper/test-reftable.c @@ -8,6 +8,7 @@ int cmd__reftable(int argc, const char **argv) merged_test_main(argc, argv); pq_test_main(argc, argv); record_test_main(argc, argv); + refname_test_main(argc, argv); readwrite_test_main(argc, argv); tree_test_main(argc, argv); return 0; |