Merge branch 'aw/push-force-with-lease-reporting' into maint
[git] / pack-revindex.h
1 #ifndef PACK_REVINDEX_H
2 #define PACK_REVINDEX_H
3
4 struct revindex_entry {
5         off_t offset;
6         unsigned int nr;
7 };
8
9 struct pack_revindex {
10         struct packed_git *p;
11         struct revindex_entry *revindex;
12 };
13
14 struct pack_revindex *revindex_for_pack(struct packed_git *p);
15 int find_revindex_position(struct pack_revindex *pridx, off_t ofs);
16
17 struct revindex_entry *find_pack_revindex(struct packed_git *p, off_t ofs);
18
19 #endif