aboutsummaryrefslogtreecommitdiff
path: root/repack.h
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2025-10-15 18:29:38 -0400
committerJunio C Hamano <gitster@pobox.com>2025-10-16 10:08:57 -0700
commit09797bd9666bb9cc6232e414498578deb2697c2a (patch)
tree5c950716ab19dc37d73a964d966cce01d7ddc1eb /repack.h
parent7ac4231b4283f4f8dc8447439730a5a2b8ed7eb4 (diff)
downloadgit-09797bd9666bb9cc6232e414498578deb2697c2a.tar.xz
repack: move `write_cruft_pack()` out of the builtin
In an identical fashion as the previous commit, move the function `write_cruft_pack()` into its own compilation unit, and make the function visible through the repack.h API. 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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/repack.h b/repack.h
index c790c90ef8..3a688a12ee 100644
--- a/repack.h
+++ b/repack.h
@@ -137,4 +137,10 @@ int write_filtered_pack(const struct write_pack_opts *opts,
struct existing_packs *existing,
struct string_list *names);
+int write_cruft_pack(const struct write_pack_opts *opts,
+ const char *cruft_expiration,
+ unsigned long combine_cruft_below_size,
+ struct string_list *names,
+ struct existing_packs *existing);
+
#endif /* REPACK_H */