aboutsummaryrefslogtreecommitdiff
path: root/repack.h
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2025-10-15 18:28:35 -0400
committerJunio C Hamano <gitster@pobox.com>2025-10-16 10:08:55 -0700
commit29e935515d1b49fa08b2781371625e5c55d2bf13 (patch)
treeacc5e676482c37bdc1ab567629f1f500e46b71d8 /repack.h
parentbebf941f7db5de3de88962199b4400de8207f9b1 (diff)
downloadgit-29e935515d1b49fa08b2781371625e5c55d2bf13.tar.xz
builtin/repack.c: remove "repack_promisor_objects()" from the builtin
Now that we have properly factored the portion of the builtin which is responsible for repacking promisor objects, we can move that function (and associated dependencies) out of the builtin entirely. Similar to previous extractions, this function is declared in repack.h, but implemented in a separate repack-promisor.c file. This is done to separate promisor-specific repacking functionality from generic repack utilities (like "existing_packs", and "generated_pack" APIs). 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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/repack.h b/repack.h
index f37eb49524..19dc4fd738 100644
--- a/repack.h
+++ b/repack.h
@@ -74,4 +74,8 @@ int generated_pack_has_ext(const struct generated_pack *pack, const char *ext);
void generated_pack_install(struct generated_pack *pack, const char *name,
const char *packdir, const char *packtmp);
+void repack_promisor_objects(struct repository *repo,
+ const struct pack_objects_args *args,
+ struct string_list *names, const char *packtmp);
+
#endif /* REPACK_H */