Skip to content

Commit bebf941

Browse files
ttaylorrgitster
authored andcommitted
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>
1 parent f053ab6 commit bebf941

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

builtin/repack.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ static int write_oid(const struct object_id *oid,
136136

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

12011202
if (pack_everything & ALL_INTO_ONE) {
1202-
repack_promisor_objects(repo, &po_args, &names);
1203+
repack_promisor_objects(repo, &po_args, &names, packtmp);
12031204

12041205
if (existing_packs_has_non_kept(&existing) &&
12051206
delete_redundant &&

0 commit comments

Comments
 (0)