]> Kevux Git Server - rit/commit
ref-filter: propagate peeled object ID
authorPatrick Steinhardt <ps@pks.im>
Thu, 23 Oct 2025 07:16:16 +0000 (09:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 4 Nov 2025 15:32:25 +0000 (07:32 -0800)
commit70b783c3a194746d8b747677615f33b94454146f
tree402b1ef4d4af9b04a5b40a3b32c0735d873f3cc7
parentadecd5f0b6fdd40219d5503fdaf46aa8d36a4ff7
ref-filter: propagate peeled object ID

When queueing a reference in the "ref-filter" subsystem we end up
creating a new ref array item that contains the reference's info. One
bit of info that we always discard though is the peeled object ID, and
because of that we are forced to use `peel_iterated_oid()`.

Refactor the code to propagate the peeled object ID via the ref array,
if available. This allows us to manually peel tags without having to go
through the object database.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/ls-remote.c
builtin/tag.c
builtin/verify-tag.c
ref-filter.c
ref-filter.h