diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-07-19 21:30:19 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-07-19 21:30:19 +0300 |
commit | 4308d81d456c8c3ecc2c33af7f4d834de95130b9 (patch) | |
tree | faf4ca256e9390ab147ce2e213179936a2e01a92 /packfile.h | |
parent | 9d418600f4d10dcbbfb0b5fdbc71d509e03ba719 (diff) | |
parent | 3612c2334af8b70137a2d3f5497b1b6f4e9762a2 (diff) |
Merge branch 'ds/midx-expire-repack'
"git multi-pack-index" learned expire and repack subcommands.
* ds/midx-expire-repack:
t5319: use 'test-tool path-utils' instead of 'ls -l'
t5319-multi-pack-index.sh: test batch size zero
midx: add test that 'expire' respects .keep files
multi-pack-index: test expire while adding packs
midx: implement midx_repack()
multi-pack-index: prepare 'repack' subcommand
multi-pack-index: implement 'expire' subcommand
midx: refactor permutation logic and pack sorting
midx: simplify computation of pack name lengths
multi-pack-index: prepare for 'expire' subcommand
Docs: rearrange subcommands for multi-pack-index
repack: refactor pack deletion for future use
Diffstat (limited to 'packfile.h')
-rw-r--r-- | packfile.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packfile.h b/packfile.h index 81e868d55a..3e98910bdd 100644 --- a/packfile.h +++ b/packfile.h @@ -96,6 +96,13 @@ void clear_delta_base_cache(void); struct packed_git *add_packed_git(const char *path, size_t path_len, int local); /* + * Unlink the .pack and associated extension files. + * Does not unlink if 'force_delete' is false and the pack-file is + * marked as ".keep". + */ +extern void unlink_pack_path(const char *pack_name, int force_delete); + +/* * Make sure that a pointer access into an mmap'd index file is within bounds, * and can provide at least 8 bytes of data. * |