X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fgit.git;a=blobdiff_plain;f=commit-graph.h;fp=commit-graph.h;h=28f89cdf3e577582261c2261698bdd051b530edb;hp=3ba0da1e5f4738823670ba560a34e156946b1b8a;hb=d80bea479daa1d49a6b2332c4731e2647c896c29;hpb=0cc4dcacb323cfd1cfe6e6a750ecc86eb215180d diff --git a/commit-graph.h b/commit-graph.h index 3ba0da1e5f..28f89cdf3e 100644 --- a/commit-graph.h +++ b/commit-graph.h @@ -135,4 +135,14 @@ void free_commit_graph(struct commit_graph *); */ void disable_commit_graph(struct repository *r); +struct commit_graph_data { + uint32_t graph_pos; + uint32_t generation; +}; + +/* + * Commits should be parsed before accessing generation, graph positions. + */ +uint32_t commit_graph_generation(const struct commit *); +uint32_t commit_graph_position(const struct commit *); #endif