]> git.ipfire.org Git - thirdparty/git.git/commit
reftable/writer: drop static variable used to initialize strbuf
authorPatrick Steinhardt <ps@pks.im>
Mon, 13 May 2024 08:18:04 +0000 (10:18 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 14 May 2024 00:02:38 +0000 (17:02 -0700)
commite0cf3d8f8bc0480e67ac83502c10d6e6c38e1e11
treeafdc101793cba23cd28108b22d3b0448c36347e8
parent799237852bd265feb1e1a8d4a19780e20991b4fd
reftable/writer: drop static variable used to initialize strbuf

We have a static variable in the reftable writer code that is merely
used to initialize the `last_key` of the writer. Convert the code to
instead use `strbuf_init()` and drop the variable.

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