]> git.ipfire.org Git - thirdparty/git.git/commit
t/helper: use `hash_to_hex_algop()` to print hashes
authorPatrick Steinhardt <ps@pks.im>
Thu, 22 Aug 2024 06:35:21 +0000 (08:35 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 22 Aug 2024 14:59:48 +0000 (07:59 -0700)
commit1f39dd2ae50d2b6d36b30566db0bd177cf3efc6a
treeb3a020898a86c6e25a82ab30b2e5f78eff8553ab
parent42c424d69de22cbb298eb85c48b0a6be9ce4ca96
t/helper: use `hash_to_hex_algop()` to print hashes

The "reftable" test helper uses a hand-crafted version to convert from a
raw hash to its hex variant. This was done because this code used to be
part of the reftable library, where we do not use most functions from
the Git core.

Now that the code is integrated into the "dump-reftable" helper though,
that limitation went away. Let's thus use `hash_to_hex_algop()` instead.

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