]> git.ipfire.org Git - thirdparty/git.git/commitdiff
builtin/repack.c: pass "packtmp" to `repack_promisor_objects()`
authorTaylor Blau <me@ttaylorr.com>
Wed, 15 Oct 2025 22:28:32 +0000 (18:28 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 16 Oct 2025 17:08:55 +0000 (10:08 -0700)
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>
builtin/repack.c

index 0e11c3b2c96f5c78980372edcc0557f7ca00cdf4..2c67111b33337dea0838081103abba0dfd8ef8af 100644 (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 &&