@matheusbsbs / matheus-bagliano / commits / 10f007c370
Fork 0

reftable: clarify how empty tables should be written

The format allows for some ambiguity, as a lone footer also starts with a valid file header. However, the current JGit code will barf on this. This commit codifies this behavior into the standard. Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Han-Wen Nienhuys committed May 20, 2020 at 17:36 UTC 10f007c37031df64a5786f032f52fd1327920e0d
1 file changed +6
Documentation/technical/reftable.txt
+6
@@ -733,6 +733,12 @@ version)
733
734 Once verified, the other fields of the footer can be accessed.
735
736 +Empty tables
737 +++++++++++++
738 +
739 +A reftable may be empty. In this case, the file starts with a header
740 +and is immediately followed by a footer.
741 +
742 Binary search
743 ^^^^^^^^^^^^^
744