commit-graph: close under reachability
[git.git] / commit-graph.h
blob2528478f06db26abbfc22ca62e93425bf6a1da05
1 #ifndef COMMIT_GRAPH_H
2 #define COMMIT_GRAPH_H
4 #include "git-compat-util.h"
6 char *get_commit_graph_filename(const char *obj_dir);
8 struct commit_graph {
9 int graph_fd;
11 const unsigned char *data;
12 size_t data_len;
14 unsigned char hash_len;
15 unsigned char num_chunks;
16 uint32_t num_commits;
17 struct object_id oid;
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;
25 struct commit_graph *load_commit_graph_one(const char *graph_file);
27 void write_commit_graph(const char *obj_dir);
29 #endif