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

Large parts of the reftable library do not conform to Git's typical code
style. Refactor `writer_add_record()` 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