]> git.ipfire.org Git - thirdparty/git.git/commit
refs/files: stop using `the_repository` in `parse_loose_ref_contents()`
authorPatrick Steinhardt <ps@pks.im>
Tue, 30 Jul 2024 05:22:51 +0000 (07:22 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Jul 2024 20:41:23 +0000 (13:41 -0700)
commit080b068ffb72a41ea23d11a6a5781e587db7d860
tree5264554a0f91d3b802d42945be926c98b3bad08b
parentf777f4d88440e9f04476a115a82809de19efc926
refs/files: stop using `the_repository` in `parse_loose_ref_contents()`

We implicitly rely on `the_repository` in `parse_loose_ref_contents()`
by calling `parse_oid_hex()`. Convert the function to instead use
`parse_oid_hex_algop()` and have callers pass in the hash algorithm to
use.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c
refs/files-backend.c
refs/refs-internal.h