]> git.ipfire.org Git - thirdparty/git.git/commit
oidset: pass hash algorithm when parsing file
authorPatrick Steinhardt <ps@pks.im>
Fri, 14 Jun 2024 06:50:42 +0000 (08:50 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 14 Jun 2024 17:26:34 +0000 (10:26 -0700)
commitf2c32a66f508586a9233dc6eac27bc4689e67dc1
tree8a57762d12afdd00dba82baf70ad801d1be96a0c
parentafa2c6ddc88db766d16d471aa12b5db6bac39158
oidset: pass hash algorithm when parsing file

The `oidset_parse_file_carefully()` function implicitly depends on
`the_repository` when parsing object IDs. Fix this by having 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>
builtin/blame.c
fsck.c
oidset.c
oidset.h