Skip to content

Commit 10f007c

Browse files
hanwengitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 35e6c47 commit 10f007c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Documentation/technical/reftable.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,12 @@ version)
733733

734734
Once verified, the other fields of the footer can be accessed.
735735

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+
736742
Binary search
737743
^^^^^^^^^^^^^
738744

0 commit comments

Comments
 (0)