diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-04-02 13:13:42 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-04-07 14:43:51 -0700 |
| commit | 3d45483846368796d12f62d7d15daaa59d9d8a5c (patch) | |
| tree | d1f8e59041497eb4ac94dd486bb54d26de096736 /builtin/rev-list.c | |
| parent | builtin/cat-file: support "object:type=" objects filter (diff) | |
| download | git-3d45483846368796d12f62d7d15daaa59d9d8a5c.tar.gz git-3d45483846368796d12f62d7d15daaa59d9d8a5c.zip | |
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>
Diffstat (limited to 'builtin/rev-list.c')
| -rw-r--r-- | builtin/rev-list.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/rev-list.c b/builtin/rev-list.c index bb26bee0d4..1100dd2abe 100644 --- a/builtin/rev-list.c +++ b/builtin/rev-list.c @@ -429,7 +429,8 @@ static int show_object_fast( int exclude UNUSED, uint32_t name_hash UNUSED, struct packed_git *found_pack UNUSED, - off_t found_offset UNUSED) + off_t found_offset UNUSED, + void *payload UNUSED) { fprintf(stdout, "%s\n", oid_to_hex(oid)); return 1; |
