]> Kevux Git Server - rit/commit
wt-status: use hash_algo from local repository instead of global the_hash_algo
authorShreyansh Paliwal <shreyanshpaliwalcmsmn@gmail.com>
Wed, 18 Feb 2026 17:53:42 +0000 (23:23 +0530)
committerJunio C Hamano <gitster@pobox.com>
Thu, 19 Feb 2026 16:59:24 +0000 (08:59 -0800)
commita7cd24de0b3b679c16ae3ee8215af06aeea1e6a3
tree4fcc32ab87b405b6549f713cc66a62969254d155
parent9d0d2ba217f3ceefb0315b556f012edb598b9724
wt-status: use hash_algo from local repository instead of global the_hash_algo

wt-status.c still uses the global the_hash_algo even though a repository
instance is already available via struct wt_status.

Replace uses of the_hash_algo with the hash algorithm stored in the
associated repository (s->repo->hash_algo or r->hash_algo).

This removes another dependency on global state and keeps wt-status
consistent with local repository usage.

Signed-off-by: Shreyansh Paliwal <shreyanshpaliwalcmsmn@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
wt-status.c