]> git.ipfire.org Git - thirdparty/git.git/commit
midx-write: use `revs->repo` inside `read_refs_snapshot`
authorKarthik Nayak <karthik.188@gmail.com>
Wed, 27 Nov 2024 16:28:27 +0000 (17:28 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 4 Dec 2024 01:32:20 +0000 (10:32 +0900)
commit20df8141f5b7c015abb1090b19e4d24439e500c0
treee9a8ed9176412e7bf198703cf9b656229e4c4e6a
parent3687a4b3e1c8edac080480677f35a5d267fee6e1
midx-write: use `revs->repo` inside `read_refs_snapshot`

The function `read_refs_snapshot()` uses `parse_oid_hex()`, which relies
on the global `the_hash_algo` variable. Let's instead use
`parse_oid_hex_algop()` and provide the hash algo via `revs->repo`.

Also, while here, fix a missing newline after the function's definition.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
midx-write.c