blob: 848331d5d67bc93c9076e791adecbf2fc582d682 [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 King4828ce92019-04-05 14:04:24 -040011int load_pack_revindex(struct packed_git *p);
Jeff King9d98bbf2015-12-21 01:20:33 -050012int 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