blob: e262f3efe84962e774c1784129de4c17de3936c8 [file] [log] [blame]
Nicolas Pitre3449f8c2008-02-28 00:25:17 -05001#ifndef PACK_REVINDEX_H
2#define PACK_REVINDEX_H
3
Jeff King9d98bbf2015-12-21 01:20:33 -05004struct packed_git;
5
Nicolas Pitre3449f8c2008-02-28 00:25:17 -05006struct revindex_entry {
7 off_t offset;
8 unsigned int nr;
9};
10
Jeff King9d98bbf2015-12-21 01:20:33 -050011void load_pack_revindex(struct packed_git *p);
12int find_revindex_position(struct packed_git *p, off_t ofs);
Vicent Marti92e5c772013-10-24 14:00:36 -040013
Nicolas Pitre3449f8c2008-02-28 00:25:17 -050014struct revindex_entry *find_pack_revindex(struct packed_git *p, off_t ofs);
Nicolas Pitre3449f8c2008-02-28 00:25:17 -050015
16#endif