diff options
author | Karthik Nayak <karthik.188@gmail.com> | 2024-11-27 17:28:32 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-12-04 10:32:21 +0900 |
commit | f59de71cf700f9f8da27023ec8b5df117f99d9c8 (patch) | |
tree | d6fea036d096b6b92fb763df8697fb24f383d9f9 /commit.c | |
parent | d5c2ca576a47480b03a83821041955a21a645d1a (diff) |
midx: pass down `hash_algo` to functions using global variables
The functions `get_split_midx_filename_ext()`, `get_midx_filename()` and
`get_midx_filename_ext()` use `hash_to_hex()` which internally uses the
`the_hash_algo` global variable.
Remove this dependency on global variables by passing down the
`hash_algo` through to the functions mentioned and instead calling
`hash_to_hex_algop()` along with the obtained `hash_algo`.
Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions