]> git.ipfire.org Git - thirdparty/git.git/blame - commit-graph.h
commit-graph: close under reachability
[thirdparty/git.git] / commit-graph.h
CommitLineData
08fd81c9
DS
1#ifndef COMMIT_GRAPH_H
2#define COMMIT_GRAPH_H
3
2a2e32bd
DS
4#include "git-compat-util.h"
5
6char *get_commit_graph_filename(const char *obj_dir);
7
8struct commit_graph {
9 int graph_fd;
10
11 const unsigned char *data;
12 size_t data_len;
13
14 unsigned char hash_len;
15 unsigned char num_chunks;
16 uint32_t num_commits;
17 struct object_id oid;
18
19 const uint32_t *chunk_oid_fanout;
20 const unsigned char *chunk_oid_lookup;
21 const unsigned char *chunk_commit_data;
22 const unsigned char *chunk_large_edges;
23};
24
25struct commit_graph *load_commit_graph_one(const char *graph_file);
26
08fd81c9
DS
27void write_commit_graph(const char *obj_dir);
28
29#endif