config: create core.multiPackIndex setting
[git/git.git] / midx.h
1 #ifndef __MIDX_H__
2 #define __MIDX_H__
3
4 #include "repository.h"
5
6 struct multi_pack_index {
7 struct multi_pack_index *next;
8
9 int fd;
10
11 const unsigned char *data;
12 size_t data_len;
13
14 uint32_t signature;
15 unsigned char version;
16 unsigned char hash_len;
17 unsigned char num_chunks;
18 uint32_t num_packs;
19 uint32_t num_objects;
20
21 const unsigned char *chunk_pack_names;
22 const uint32_t *chunk_oid_fanout;
23 const unsigned char *chunk_oid_lookup;
24 const unsigned char *chunk_object_offsets;
25 const unsigned char *chunk_large_offsets;
26
27 const char **pack_names;
28 char object_dir[FLEX_ARRAY];
29 };
30
31 struct multi_pack_index *load_multi_pack_index(const char *object_dir);
32 int prepare_multi_pack_index_one(struct repository *r, const char *object_dir);
33
34 int write_midx_file(const char *object_dir);
35
36 #endif