]> Kevux Git Server - rit/commit
object-file: stop using `the_hash_algo`
authorPatrick Steinhardt <ps@pks.im>
Thu, 17 Jul 2025 04:56:28 +0000 (06:56 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Jul 2025 05:16:13 +0000 (22:16 -0700)
commit18323f5b485f5c484622e18c6bfd167fdf5ca101
tree590e5d3fae4951410c37fe89afbf50480e8ec25d
parent80e7f52299619575cb48522a4ca40427e2231dc6
object-file: stop using `the_hash_algo`

There are a couple of users of the `the_hash_algo` macro, which
implicitly depends on `the_repository`. Adapt these callers to not do so
anymore, either by deriving it from already-available context or by
using `the_repository->hash_algo`. The latter variant doesn't yet help
to remove the global dependency, but such users will be adapted in the
following commits to not use `the_repository` anymore.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object-file.c
object-file.h