Re: [PATCH 5/9] commit-graph: stop using `the_hash_algo` via macros

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 04, 2025 at 10:17:21AM +0200, Patrick Steinhardt wrote:
> 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 <ps@xxxxxx>
> ---
>  commit-graph.c | 25 ++++++++++++++++---------
>  1 file changed, 16 insertions(+), 9 deletions(-)

Very nice.

Thanks,
Taylor




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux