2008-02-28 06:25:17 +01:00
|
|
|
#ifndef PACK_REVINDEX_H
|
|
|
|
#define PACK_REVINDEX_H
|
|
|
|
|
|
|
|
struct revindex_entry {
|
|
|
|
off_t offset;
|
|
|
|
unsigned int nr;
|
|
|
|
};
|
|
|
|
|
2013-10-24 20:00:36 +02:00
|
|
|
struct pack_revindex {
|
|
|
|
struct packed_git *p;
|
|
|
|
struct revindex_entry *revindex;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct pack_revindex *revindex_for_pack(struct packed_git *p);
|
|
|
|
int find_revindex_position(struct pack_revindex *pridx, off_t ofs);
|
|
|
|
|
2008-02-28 06:25:17 +01:00
|
|
|
struct revindex_entry *find_pack_revindex(struct packed_git *p, off_t ofs);
|
|
|
|
|
|
|
|
#endif
|