]> git.ipfire.org Git - thirdparty/git.git/commit
object-file: get rid of `the_repository` in `loose_object_info()`
authorPatrick Steinhardt <ps@pks.im>
Thu, 17 Jul 2025 04:56:32 +0000 (06:56 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Jul 2025 05:16:14 +0000 (22:16 -0700)
commit1efe0aeaa2e10766abe9bf05e2e1a014251ba4e2
tree481a8252fa736b55cd92fc96423f4089b81ea939
parent1031f57695ed02da06d1af5ac945bb243262fa09
object-file: get rid of `the_repository` in `loose_object_info()`

While `loose_object_info()` already accepts a repository as parameter we
still have one callsite in there where we use `the_repository` to figure
out the hash algorithm. Use the passed-in repository instead.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object-file.c