diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-06-17 08:39:51 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-06-17 05:00:00 -0700 |
| commit | 77e175c6d03a26e97deb2a7bc707894eb45ced26 (patch) | |
| tree | 223fdc99110ef6f73c3db42a291aa006baede3f6 /t/t4013/diff.diff_initial..side | |
| parent | 9ea4ef8586d8fa74bf45c1dd8da2256099abebbd (diff) | |
packfile: use higher-level interface to implement `has_object_pack()`
In `has_object_pack()` we're checking whether a specific object exists
as part of a packfile. This is done by calling the low-level function
`find_pack_entry()`, but this function will eventually be moved into
"odb/source-packed.c" and made file-local.
Refactor the code to use `packfile_store_read_object_info()` instead.
This refactoring is functionally equivalent as that function will call
`find_pack_entry()` itself and then return immediately when it ain't got
no object info pointer as parameter.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_initial..side')
0 files changed, 0 insertions, 0 deletions
