]> git.ipfire.org Git - thirdparty/git.git/commit
packfile: inline `find_kept_pack_entry()`
authorPatrick Steinhardt <ps@pks.im>
Fri, 9 Jan 2026 08:33:16 +0000 (09:33 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 9 Jan 2026 14:40:07 +0000 (06:40 -0800)
commit6acefa0d2ca0fd95461b19026917d09210032b3d
treebaeb23aa6e720ce0669d85966bc1deefc1035874
parent8384cbcb4c737c6d1c6becb40e439c398e3624b4
packfile: inline `find_kept_pack_entry()`

The `find_kept_pack_entry()` function is only used in
`has_object_kept_pack()`, which is only a trivial wrapper itself. Inline
the latter into the former.

Furthermore, reorder the code so that we can drop the declaration of the
function in "packfile.h". This allows us to make the function file-local.

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