]> git.ipfire.org Git - thirdparty/git.git/blobdiff - commit-graph.h
Merge branch 'ab/pager-exit-log'
[thirdparty/git.git] / commit-graph.h
index 19a02001fdef34a7772d359ff461e50bf4865965..97f3497c2790c5bca0f9c73dd069291c95456895 100644 (file)
@@ -64,6 +64,7 @@ struct commit_graph {
        struct object_directory *odb;
 
        uint32_t num_commits_in_base;
+       unsigned int read_generation_data;
        struct commit_graph *base_graph;
 
        const uint32_t *chunk_oid_fanout;
@@ -94,6 +95,12 @@ struct commit_graph *parse_commit_graph(struct repository *r,
  */
 int generation_numbers_enabled(struct repository *r);
 
+/*
+ * Return 1 if and only if the repository has a commit-graph
+ * file and generation data chunk has been written for the file.
+ */
+int corrected_commit_dates_enabled(struct repository *r);
+
 struct bloom_filter_settings *get_bloom_filter_settings(struct repository *r);
 
 enum commit_graph_write_flags {