]> git.ipfire.org Git - thirdparty/git.git/commit
pack-bitmap: allow passing payloads to `show_reachable_fn()`
authorPatrick Steinhardt <ps@pks.im>
Wed, 2 Apr 2025 11:13:42 +0000 (13:13 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Apr 2025 21:43:51 +0000 (14:43 -0700)
commit3d45483846368796d12f62d7d15daaa59d9d8a5c
treed1f8e59041497eb4ac94dd486bb54d26de096736
parent8fa9fe171a43b10c47268b6508ad4f39f2f628d6
pack-bitmap: allow passing payloads to `show_reachable_fn()`

The `show_reachable_fn` callback is used by a couple of functions to
present reachable objects to the caller. The function does not provide a
way for the caller to pass a payload though, which is functionality that
we'll require in a subsequent commit.

Change the callback type to accept a payload and adapt all callsites
accordingly.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/pack-objects.c
builtin/rev-list.c
pack-bitmap.c
pack-bitmap.h
reachable.c