aboutsummaryrefslogtreecommitdiff
path: root/repack.h
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2025-10-15 18:28:01 -0400
committerJunio C Hamano <gitster@pobox.com>2025-10-16 10:08:54 -0700
commit7005d2594b73d30beae7abebdd035becca05299d (patch)
treec2e6b452d2f85e7f35a458dd7a96ab72eb00f93b /repack.h
parente35ef71e003cb0731d9f33605f598e1b99746441 (diff)
downloadgit-7005d2594b73d30beae7abebdd035becca05299d.tar.xz
repack: remove 'prepare_pack_objects' from the builtin
Now that the 'prepare_pack_objects' function no longer refers to external, static variables, move it out to repack.h as generic functionality. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'repack.h')
-rw-r--r--repack.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/repack.h b/repack.h
index 12632d7fec..3f7ec20735 100644
--- a/repack.h
+++ b/repack.h
@@ -21,6 +21,11 @@ struct pack_objects_args {
#define PACK_OBJECTS_ARGS_INIT { .delta_base_offset = 1 }
+struct child_process;
+
+void prepare_pack_objects(struct child_process *cmd,
+ const struct pack_objects_args *args,
+ const char *out);
void pack_objects_args_release(struct pack_objects_args *args);
#endif /* REPACK_H */