diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2017-08-19 00:20:19 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-08-24 00:12:06 +0200 |
commit | 0317f45576a0b48c90c4b023fa572a000633946c (patch) | |
tree | 987b83cab92be9282e64c7011b2008884f373a51 /packfile.h | |
parent | pack: move pack_report() (diff) | |
download | git-0317f45576a0b48c90c4b023fa572a000633946c.tar.xz git-0317f45576a0b48c90c4b023fa572a000633946c.zip |
pack: move open_pack_index(), parse_pack_index()
alloc_packed_git() in packfile.c is duplicated from sha1_file.c. In a
subsequent commit, alloc_packed_git() will be removed from sha1_file.c.
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.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packfile.h b/packfile.h index bfa94c8fee..703887d41b 100644 --- a/packfile.h +++ b/packfile.h @@ -33,6 +33,14 @@ 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); + extern void pack_report(void); +/* + * mmap the index file for the specified packfile (if it is not + * already mmapped). Return 0 on success. + */ +extern int open_pack_index(struct packed_git *); + #endif |