aboutsummaryrefslogtreecommitdiffstats
path: root/repack.h
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2025-10-15 18:28:29 -0400
committerJunio C Hamano <gitster@pobox.com>2025-10-16 10:08:55 -0700
commitf053ab6c2be6a9869cbdfaabe5bd844a2471f8b7 (patch)
treea56ea634a44983d69a4f3752c7b2f4072b94e81e /repack.h
parentbuiltin/repack.c: provide pack locations to `generated_pack_install()` (diff)
downloadgit-f053ab6c2be6a9869cbdfaabe5bd844a2471f8b7.tar.gz
git-f053ab6c2be6a9869cbdfaabe5bd844a2471f8b7.zip
repack: remove 'generated_pack' API from the builtin
Now that we have factored the "generated_pack" API, we can move it to repack.ch, further slimming down builtin/repack.c. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rw-r--r--repack.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/repack.h b/repack.h
index 19796e2243..f37eb49524 100644
--- a/repack.h
+++ b/repack.h
@@ -66,4 +66,12 @@ void existing_packs_remove_redundant(struct existing_packs *existing,
const char *packdir);
void existing_packs_release(struct existing_packs *existing);
+struct generated_pack;
+
+struct generated_pack *generated_pack_populate(const char *name,
+ const char *packtmp);
+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);
+
#endif /* REPACK_H */