]> git.ipfire.org Git - thirdparty/git.git/blobdiff - commit-graph.h
commit-graph: factor out chain opening function
[thirdparty/git.git] / commit-graph.h
index 5e534f0fcc8d131a6e759ed1658b0e0984123a6e..3b662fd2b541a614c3a7ef5393da83b68e705cf9 100644 (file)
@@ -26,6 +26,7 @@ struct string_list;
 char *get_commit_graph_filename(struct object_directory *odb);
 char *get_commit_graph_chain_filename(struct object_directory *odb);
 int open_commit_graph(const char *graph_file, int *fd, struct stat *st);
+int open_commit_graph_chain(const char *chain_file, int *fd, struct stat *st);
 
 /*
  * Given a commit struct, try to fill the commit struct info, including:
@@ -105,6 +106,8 @@ struct commit_graph {
 struct commit_graph *load_commit_graph_one_fd_st(struct repository *r,
                                                 int fd, struct stat *st,
                                                 struct object_directory *odb);
+struct commit_graph *load_commit_graph_chain_fd_st(struct repository *r,
+                                                  int fd, struct stat *st);
 struct commit_graph *read_commit_graph_one(struct repository *r,
                                           struct object_directory *odb);