diff options
| author | Taylor Blau <me@ttaylorr.com> | 2025-10-15 18:28:07 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-10-16 10:08:54 -0700 |
| commit | f905f49c68f9cf3aff93f0dcd065dd95345c21d5 (patch) | |
| tree | b50238bb6acc925e2364271bda4dfaa27962fd7f /repack.h | |
| parent | builtin/repack.c: rename many 'struct existing_packs' functions (diff) | |
| download | git-f905f49c68f9cf3aff93f0dcd065dd95345c21d5.tar.gz git-f905f49c68f9cf3aff93f0dcd065dd95345c21d5.zip | |
repack: remove 'remove_redundant_pack' from the builtin
Extract "remove_redundant_pack()" as generic repack-related
functionality by moving its implementation to the repack.[ch]
compilation unit.
This is a prerequisite to moving the "existing_packs" API, which is one
of the callers of this function. (The remaining caller in the pack
geometry code will eventually move to its own compilation unit as well,
and will likewise rely on this function.)
While moving it over, prefix the function name with "repack_" to
indicate that it belongs to the repack-subsystem.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
| -rw-r--r-- | repack.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -28,4 +28,7 @@ void prepare_pack_objects(struct child_process *cmd, const char *out); void pack_objects_args_release(struct pack_objects_args *args); +void repack_remove_redundant_pack(struct repository *repo, const char *dir_name, + const char *base_name); + #endif /* REPACK_H */ |
