diff options
| author | Taylor Blau <me@ttaylorr.com> | 2025-10-15 18:29:30 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-10-16 10:08:56 -0700 |
| commit | fa0787a6cc1d8e7ef1e2e8398bdc13b987c61d69 (patch) | |
| tree | 28425ca729aabf060a21965bb9863c9c28bed898 /repack.h | |
| parent | 80db3cd18985609340f40b2b06f4ef9f86a2cbe0 (diff) | |
| download | git-fa0787a6cc1d8e7ef1e2e8398bdc13b987c61d69.tar.xz | |
repack: move `finish_pack_objects_cmd()` out of the builtin
In a similar spirit as the previous commit(s), now that the function
`finish_pack_objects_cmd()` has no explicit dependencies within the
repack builtin, let's extract it.
This prepares us to extract the remaining two functions within the
repack builtin that explicitly write packfiles, which are
`write_cruft_pack()` and `write_filtered_pack()`, which will be done in
the future commits.
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.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -42,6 +42,11 @@ struct write_pack_opts { const char *write_pack_opts_pack_prefix(const struct write_pack_opts *opts); bool write_pack_opts_is_local(const struct write_pack_opts *opts); +int finish_pack_objects_cmd(const struct git_hash_algo *algop, + const struct write_pack_opts *opts, + struct child_process *cmd, + struct string_list *names); + struct repository; struct packed_git; |
