MCPcopy Index your code
hub / github.com/git/git / load_commit_graph_chain

Function load_commit_graph_chain

commit-graph.c:705–720  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

703}
704
705static struct commit_graph *load_commit_graph_chain(struct odb_source *source)
706{
707 char *chain_file = get_commit_graph_chain_filename(source);
708 struct stat st;
709 int fd;
710 struct commit_graph *g = NULL;
711
712 if (open_commit_graph_chain(chain_file, &fd, &st, source->odb->repo->hash_algo)) {
713 int incomplete;
714 /* ownership of fd is taken over by load function */
715 g = load_commit_graph_chain_fd_st(source->odb, fd, &st, &incomplete);
716 }
717
718 free(chain_file);
719 return g;
720}
721
722struct commit_graph *read_commit_graph_one(struct odb_source *source)
723{

Callers 1

read_commit_graph_oneFunction · 0.85

Tested by

no test coverage detected