summaryrefslogtreecommitdiff
path: root/packfile.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-07-19 18:30:19 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-07-19 18:30:19 (GMT)
commit4308d81d456c8c3ecc2c33af7f4d834de95130b9 (patch)
treefaf4ca256e9390ab147ce2e213179936a2e01a92 /packfile.h
parent9d418600f4d10dcbbfb0b5fdbc71d509e03ba719 (diff)
parent3612c2334af8b70137a2d3f5497b1b6f4e9762a2 (diff)
downloadgit-4308d81d456c8c3ecc2c33af7f4d834de95130b9.zip
git-4308d81d456c8c3ecc2c33af7f4d834de95130b9.tar.gz
git-4308d81d456c8c3ecc2c33af7f4d834de95130b9.tar.bz2
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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/packfile.h b/packfile.h
index 81e868d..3e98910 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.
*