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>

Taylor Blau committed Oct 15, 2025 at 18:28 UTC bebf941f7db5de3de88962199b4400de8207f9b1
1 file changed +3 -2
builtin/repack.c
+3 -2
@@ -136,7 +136,8 @@ static int write_oid(const struct object_id *oid,
136
137 static void repack_promisor_objects(struct repository *repo,
138 const struct pack_objects_args *args,
139 - struct string_list *names)
139 + struct string_list *names,
140 + const char *packtmp)
141 {
142 struct write_oid_context ctx;
143 struct child_process cmd = CHILD_PROCESS_INIT;
@@ -1199,7 +1200,7 @@ int cmd_repack(int argc,
1200 strvec_push(&cmd.args, "--delta-islands");
1201
1202 if (pack_everything & ALL_INTO_ONE) {
1202 - repack_promisor_objects(repo, &po_args, &names);
1203 + repack_promisor_objects(repo, &po_args, &names, packtmp);
1204
1205 if (existing_packs_has_non_kept(&existing) &&
1206 delete_redundant &&