diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2017-08-19 01:20:32 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-08-24 01:12:07 +0300 |
commit | 9e0f45f5a61d9d0556e6004198dd6a650be14bd9 (patch) | |
tree | f5037d6faeb9de15103198bd2801ecfa6946c5de /cache.h | |
parent | d5a16761820f2539bf8610c8f0c64f610e29314e (diff) |
pack: move check_pack_index_ptr(), nth_packed_object_offset()
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 16 |
1 files changed, 0 insertions, 16 deletions
@@ -1621,22 +1621,6 @@ extern int odb_mkstemp(struct strbuf *template, const char *pattern); extern int odb_pack_keep(const char *name); /* - * Make sure that a pointer access into an mmap'd index file is within bounds, - * and can provide at least 8 bytes of data. - * - * Note that this is only necessary for variable-length segments of the file - * (like the 64-bit extended offset table), as we compare the size to the - * fixed-length parts when we open the file. - */ -extern void check_pack_index_ptr(const struct packed_git *p, const void *ptr); - -/* - * Return the offset of the nth object within the specified packfile. - * The index must already be opened. - */ -extern off_t nth_packed_object_offset(const struct packed_git *, uint32_t n); - -/* * If the object named sha1 is present in the specified packfile, * return its offset within the packfile; otherwise, return 0. */ |