]> git.ipfire.org Git - thirdparty/git.git/commit
t-reftable-merged: improve the const-correctness of helper functions
authorChandra Pratap <chandrapratap3519@gmail.com>
Fri, 12 Jul 2024 05:39:00 +0000 (11:09 +0530)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Jul 2024 16:55:40 +0000 (09:55 -0700)
commit8d4f8165d88eb43a4fda8af519936fa194acfbb8
tree53a16a213532d98b4a98ebb52ec4c6812c39002f
parentc755c2f3519075028047b092dd26706ac75d1aff
t-reftable-merged: improve the const-correctness of helper functions

In t-reftable-merged.c, a number of helper functions used by the
tests can be re-defined with parameters made 'const' which makes
it easier to understand if they're read-only or not. Re-define
these functions along these lines.

Mentored-by: Patrick Steinhardt <ps@pks.im>
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Chandra Pratap <chandrapratap3519@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/unit-tests/t-reftable-merged.c