]> git.ipfire.org Git - thirdparty/git.git/commit - packfile.h
repack: refactor pack deletion for future use
authorDerrick Stolee <dstolee@microsoft.com>
Mon, 10 Jun 2019 23:35:22 +0000 (16:35 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Jun 2019 17:34:40 +0000 (10:34 -0700)
commit8434e85d5f9602a82f6b34ba82a9cb9e559a2d3b
tree47a5ca23b44ebf9b369585a6b24eb5a49f5f12ea
parentb697d92f56511e804b8ba20ccbe7bdc85dc66810
repack: refactor pack deletion for future use

The repack builtin deletes redundant pack-files and their
associated .idx, .promisor, .bitmap, and .keep files. We will want
to re-use this logic in the future for other types of repack, so
pull the logic into 'unlink_pack_path()' in packfile.c.

The 'ignore_keep' parameter is enabled for the use in repack, but
will be important for a future caller.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/repack.c
packfile.c
packfile.h