]> git.99rst.org Git - git.git/commit
commit-graph: stop using `the_hash_algo` via macros
authorPatrick Steinhardt <redacted>
Fri, 15 Aug 2025 05:49:47 +0000 (07:49 +0200)
committerJunio C Hamano <redacted>
Fri, 15 Aug 2025 16:34:46 +0000 (09:34 -0700)
commit3481cb7dfd4407d2dae411662e978011250ec2b2
treef0cbfdce4e4f6c5477f88834afb58a1943fdfafa
parent64cbe5e2e8a7b0f92c780b210e602496bd5cad0f
commit-graph: stop using `the_hash_algo` via macros

We have two macros `GRAPH_DATA_WIDTH` and `GRAPH_MIN_SIZE` that compute
hash-dependent sizes. They do so by using the global `the_hash_algo`
variable though, which we want to get rid of over time.

Convert these macros into functions that accept the hash algorithm as
input parameter. Adapt callers accordingly.

Signed-off-by: Patrick Steinhardt <redacted>
Signed-off-by: Junio C Hamano <redacted>
commit-graph.c
git clone https://git.99rst.org/PROJECT