aboutsummaryrefslogtreecommitdiff
path: root/packfile.h
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2017-08-18 15:20:21 -0700
committerJunio C Hamano <gitster@pobox.com>2017-08-23 15:12:06 -0700
commit3836d88ae575cf2321fb17296f748c0bb35ba268 (patch)
tree5f1e224972bc8c3456862e387cd13977fb1ae205 /packfile.h
parentf0e17e86e1b1030b2719f3d6e9d4124c9b5bc480 (diff)
downloadgit-3836d88ae575cf2321fb17296f748c0bb35ba268.tar.gz
git-3836d88ae575cf2321fb17296f748c0bb35ba268.tar.xz
pack: move pack-closing functions
The function close_pack_fd() needs to be temporarily made global. Its scope will be restored to static in a subsequent commit. Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'packfile.h')
-rw-r--r--packfile.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/packfile.h b/packfile.h
index f6fe1c741..c6a07de62 100644
--- a/packfile.h
+++ b/packfile.h
@@ -43,6 +43,17 @@ extern void pack_report(void);
*/
extern int open_pack_index(struct packed_git *);
+/*
+ * munmap the index file for the specified packfile (if it is
+ * currently mmapped).
+ */
+extern void close_pack_index(struct packed_git *);
+
+extern void close_pack_windows(struct packed_git *);
+extern void close_all_packs(void);
+
+extern int close_pack_fd(struct packed_git *);
+
extern int unuse_one_window(struct packed_git *current);
extern void release_pack_memory(size_t);