]> git.ipfire.org Git - thirdparty/git.git/blobdiff - commit-graph.h
Merge branch 'ak/commit-graph-to-slab'
[thirdparty/git.git] / commit-graph.h
index 3ba0da1e5f4738823670ba560a34e156946b1b8a..28f89cdf3e577582261c2261698bdd051b530edb 100644 (file)
@@ -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