]> git.ipfire.org Git - thirdparty/git.git/blame - pack-revindex.h
pack-revindex: drop hash table
[thirdparty/git.git] / pack-revindex.h
CommitLineData
3449f8c4
NP
1#ifndef PACK_REVINDEX_H
2#define PACK_REVINDEX_H
3
4struct revindex_entry {
5 off_t offset;
6 unsigned int nr;
7};
8
92e5c77c
VM
9struct pack_revindex {
10 struct packed_git *p;
11 struct revindex_entry *revindex;
12};
13
14struct pack_revindex *revindex_for_pack(struct packed_git *p);
15int find_revindex_position(struct pack_revindex *pridx, off_t ofs);
16
3449f8c4
NP
17struct revindex_entry *find_pack_revindex(struct packed_git *p, off_t ofs);
18
19#endif