X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=packfile.h;h=3e98910bdd191f45d3dd86ff0360f40060944705;hb=6bcbdfb277bdc81b5ad6996b3fb005382a35c2ee;hp=b678d35c0b6df11623f2d29f7b7ea7dfe0e1bea1;hpb=24c161ddd6f614d27a12eebd53c9476cfb87c0ab;p=thirdparty%2Fgit.git diff --git a/packfile.h b/packfile.h index b678d35c0b..3e98910bdd 100644 --- a/packfile.h +++ b/packfile.h @@ -90,11 +90,18 @@ uint32_t get_pack_fanout(struct packed_git *p, uint32_t value); unsigned char *use_pack(struct packed_git *, struct pack_window **, off_t, unsigned long *); void close_pack_windows(struct packed_git *); void close_pack(struct packed_git *); -void close_all_packs(struct raw_object_store *o); +void close_object_store(struct raw_object_store *o); void unuse_pack(struct pack_window **); 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.