aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2017-08-18 15:20:32 -0700
committerJunio C Hamano <gitster@pobox.com>2017-08-23 15:12:07 -0700
commit9e0f45f5a61d9d0556e6004198dd6a650be14bd9 (patch)
treef5037d6faeb9de15103198bd2801ecfa6946c5de /cache.h
parentd5a16761820f2539bf8610c8f0c64f610e29314e (diff)
downloadgit-9e0f45f5a61d9d0556e6004198dd6a650be14bd9.tar.gz
git-9e0f45f5a61d9d0556e6004198dd6a650be14bd9.tar.xz
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.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/cache.h b/cache.h
index 42a828336..1a8b22779 100644
--- a/cache.h
+++ b/cache.h
@@ -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.
*/