aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/repack.c
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2025-10-15 18:28:32 -0400
committerJunio C Hamano <gitster@pobox.com>2025-10-16 10:08:55 -0700
commitbebf941f7db5de3de88962199b4400de8207f9b1 (patch)
tree11498451fac48a8fd53b8143bc962f9b827ff391 /builtin/repack.c
parentrepack: remove 'generated_pack' API from the builtin (diff)
downloadgit-bebf941f7db5de3de88962199b4400de8207f9b1.tar.gz
git-bebf941f7db5de3de88962199b4400de8207f9b1.zip
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>
Diffstat (limited to '')
-rw-r--r--builtin/repack.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/builtin/repack.c b/builtin/repack.c
index 0e11c3b2c9..2c67111b33 100644
--- a/builtin/repack.c
+++ b/builtin/repack.c
@@ -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 &&