summaryrefslogtreecommitdiff
path: root/packfile.h
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2017-08-18 15:20:22 -0700
committerJunio C Hamano <gitster@pobox.com>2017-08-23 15:12:06 -0700
commit84f80ad5e11d29b61570269a25cf447f34c5aeba (patch)
tree2cc17b1e603eecad0c7ac7b03db1e30795781ea2 /packfile.h
parent3836d88ae575cf2321fb17296f748c0bb35ba268 (diff)
downloadgit-84f80ad5e11d29b61570269a25cf447f34c5aeba.tar.gz
pack: move use_pack()
The function open_packed_git() 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.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/packfile.h b/packfile.h
index c6a07de623..e0596bb6b2 100644
--- a/packfile.h
+++ b/packfile.h
@@ -24,14 +24,7 @@ extern char *sha1_pack_name(const unsigned char *sha1);
*/
extern char *sha1_pack_index_name(const unsigned char *sha1);
-extern unsigned int pack_used_ctr;
-extern unsigned int pack_mmap_calls;
-extern unsigned int peak_pack_open_windows;
-extern unsigned int pack_open_windows;
extern unsigned int pack_open_fds;
-extern unsigned int pack_max_fds;
-extern size_t peak_pack_mapped;
-extern size_t pack_mapped;
extern struct packed_git *parse_pack_index(unsigned char *sha1, const char *idx_path);
@@ -49,13 +42,12 @@ extern int open_pack_index(struct packed_git *);
*/
extern void close_pack_index(struct packed_git *);
+extern unsigned char *use_pack(struct packed_git *, struct pack_window **, off_t, unsigned long *);
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);
+extern int open_packed_git(struct packed_git *p);
+
#endif