]> git.ipfire.org Git - thirdparty/git.git/blobdiff - commit-graph.h
Merge branch 'jk/fast-export-anonym-alt'
[thirdparty/git.git] / commit-graph.h
index 4212766a4f0507f52fb5d4f42edbf1b977fc5cae..28f89cdf3e577582261c2261698bdd051b530edb 100644 (file)
@@ -91,9 +91,7 @@ enum commit_graph_write_flags {
        COMMIT_GRAPH_WRITE_APPEND     = (1 << 0),
        COMMIT_GRAPH_WRITE_PROGRESS   = (1 << 1),
        COMMIT_GRAPH_WRITE_SPLIT      = (1 << 2),
-       /* Make sure that each OID in the input is a valid commit OID. */
-       COMMIT_GRAPH_WRITE_CHECK_OIDS = (1 << 3),
-       COMMIT_GRAPH_WRITE_BLOOM_FILTERS = (1 << 4),
+       COMMIT_GRAPH_WRITE_BLOOM_FILTERS = (1 << 3),
 };
 
 enum commit_graph_split_flags {
@@ -137,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