reftable/writer: refactorings for `writer_flush_nonempty_block()`
commit7e892fec47645ce0b791da468fb4df6c9c6d9f37
authorPatrick Steinhardt <ps@pks.im>
Mon, 8 Apr 2024 12:24:20 +0000 (8 14:24 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 9 Apr 2024 00:01:41 +0000 (8 17:01 -0700)
treed71aaeb22df33c650a2cf3958e9e26efd5c0a8e0
parentd0dd119f72286d6d198911c1b33397a210e56846
reftable/writer: refactorings for `writer_flush_nonempty_block()`

Large parts of the reftable library do not conform to Git's typical code
style. Refactor `writer_flush_nonempty_block()` such that it conforms
better to it and add some documentation that explains some of its more
intricate behaviour.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reftable/writer.c