4 #include "git-compat-util.h"
6 char *get_commit_graph_filename(const char *obj_dir
);
9 * Given a commit struct, try to fill the commit struct info, including:
14 * Returns 1 if and only if the commit was found in the packed graph.
16 * See parse_commit_buffer() for the fallback after this call.
18 int parse_commit_in_graph(struct commit
*item
);
21 * It is possible that we loaded commit contents from the commit buffer,
22 * but we also want to ensure the commit-graph content is correctly
23 * checked and filled. Fill the graph_pos and generation members of
26 void load_commit_graph_info(struct commit
*item
);
28 struct tree
*get_commit_tree_in_graph(const struct commit
*c
);
33 const unsigned char *data
;
36 unsigned char hash_len
;
37 unsigned char num_chunks
;
41 const uint32_t *chunk_oid_fanout
;
42 const unsigned char *chunk_oid_lookup
;
43 const unsigned char *chunk_commit_data
;
44 const unsigned char *chunk_large_edges
;
47 struct commit_graph
*load_commit_graph_one(const char *graph_file
);
49 void write_commit_graph(const char *obj_dir
,
50 const char **pack_indexes
,
52 const char **commit_hex
,