git/builtin
Patrick Steinhardt 0df005353a object-file: get rid of the_repository in read_loose_object()
The function `read_loose_object()` takes a path to an object file and
tries to parse it. As such, the function does not depend on any specific
object database but instead acts as an ODB-independent way to read a
specific file. As such, all it needs as input is a repository so that we
can derive repo settings and the hash algorithm.

That repository isn't passed in as a parameter though, as we implicitly
depend on the global `the_repository`. Refactor the function so that we
pass in the repository as a parameter.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2025-07-16 22:16:17 -07:00
..
2025-05-27 13:59:09 -07:00
2025-05-16 12:00:33 -07:00
2025-07-01 14:46:38 -07:00
2025-07-01 14:46:37 -07:00
2024-12-13 07:33:36 -08:00
2025-07-16 22:16:15 -07:00
2025-07-01 14:46:38 -07:00
2025-05-15 13:46:44 -07:00
2025-01-28 13:02:22 -08:00
2025-07-01 14:46:37 -07:00
2025-07-01 14:46:38 -07:00
2024-12-18 10:44:30 -08:00
2025-07-01 14:46:37 -07:00
2025-07-01 14:46:37 -07:00
2024-12-18 10:44:31 -08:00
2025-07-16 22:16:15 -07:00
2025-07-16 22:16:15 -07:00
2025-07-16 22:16:15 -07:00
2025-05-08 12:36:32 -07:00
2025-07-16 22:16:15 -07:00
2025-02-04 09:51:41 -08:00
2025-07-01 14:46:38 -07:00
2025-07-16 22:16:15 -07:00
2025-07-01 14:46:37 -07:00
2025-03-29 01:04:40 -07:00
2025-07-01 14:46:38 -07:00
2025-06-30 14:30:31 -07:00
2025-07-16 22:16:15 -07:00
2024-12-18 10:44:30 -08:00
2025-01-28 13:02:22 -08:00