builtin/repack.c: pass "packtmp" to `repack_promisor_objects()`

In a similar spirit as previous commit(s), pass the "packtmp" variable
to "repack_promisor_objects()" as an explicit parameter of the function,
preparing us to move this function in a following commit.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
seen
Taylor Blau 2025-09-28 18:08:47 -04:00 committed by Junio C Hamano
parent 494fee74dc
commit f4f36b2990
1 changed files with 3 additions and 2 deletions

View File

@ -136,7 +136,8 @@ static int write_oid(const struct object_id *oid,

static void repack_promisor_objects(struct repository *repo,
const struct pack_objects_args *args,
struct string_list *names)
struct string_list *names,
const char *packtmp)
{
struct write_oid_context ctx;
struct child_process cmd = CHILD_PROCESS_INIT;
@ -1199,7 +1200,7 @@ int cmd_repack(int argc,
strvec_push(&cmd.args, "--delta-islands");

if (pack_everything & ALL_INTO_ONE) {
repack_promisor_objects(repo, &po_args, &names);
repack_promisor_objects(repo, &po_args, &names, packtmp);

if (existing_packs_has_non_kept(&existing) &&
delete_redundant &&