]> git.ipfire.org Git - thirdparty/git.git/commit
refs: drop infrastructure to peel via iterators
authorPatrick Steinhardt <ps@pks.im>
Thu, 23 Oct 2025 07:16:19 +0000 (09:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 4 Nov 2025 15:32:25 +0000 (07:32 -0800)
commit705114772e0a0741c3288329bd9ac4e11e38db9a
treec357e79eee935ab33e47f91f20e631227b436827
parent5a5c7359f77ecd1bc4b0e172563161d602f131d3
refs: drop infrastructure to peel via iterators

Now that the peeled object ID gets propagated via the `struct reference`
there is no need anymore to call into the reference iterator itself to
dereference an object. Remove this infrastructure.

Most of the changes are straight-forward deletions of code. There is one
exception though in `refs/packed-backend.c::write_with_updates()`. Here
we stop peeling the iterator and instead just pass the peeled object ID
of that iterator directly.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.h
refs/debug.c
refs/files-backend.c
refs/iterator.c
refs/packed-backend.c
refs/ref-cache.c
refs/refs-internal.h
refs/reftable-backend.c