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>
This commit is contained in:
parent
35e6c47404
commit
10f007c370
@ -733,6 +733,12 @@ version)
|
|||||||
|
|
||||||
Once verified, the other fields of the footer can be accessed.
|
Once verified, the other fields of the footer can be accessed.
|
||||||
|
|
||||||
|
Empty tables
|
||||||
|
++++++++++++
|
||||||
|
|
||||||
|
A reftable may be empty. In this case, the file starts with a header
|
||||||
|
and is immediately followed by a footer.
|
||||||
|
|
||||||
Binary search
|
Binary search
|
||||||
^^^^^^^^^^^^^
|
^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user