]> git.ipfire.org Git - thirdparty/git.git/commit
reftable: rename scratch buffer
authorPatrick Steinhardt <ps@pks.im>
Mon, 25 Nov 2024 07:34:43 +0000 (08:34 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Nov 2024 23:39:38 +0000 (08:39 +0900)
commitef46ad0815509c464e8a2558b4ebf6dc42736a01
treee1073d70a05b05110988ad94bd45e45a8a0122a3
parent0f5762b0435234c4dc916f4b3672c78c1b24f0e2
reftable: rename scratch buffer

Both `struct block_writer` and `struct reftable_writer` have a `buf`
member that is being reused to optimize the number of allocations.
Rename the variable to `scratch` to clarify its intend and provide a
comment explaining why it exists.

Suggested-by: Christian Couder <christian.couder@gmail.com>
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reftable/block.c
reftable/block.h
reftable/writer.c
reftable/writer.h