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

Function load_commit_graph_one

commit-graph.c:493–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491}
492
493static struct commit_graph *load_commit_graph_one(struct odb_source *source,
494 const char *graph_file)
495{
496 struct stat st;
497 int fd;
498 struct commit_graph *g;
499 int open_ok = open_commit_graph(graph_file, &fd, &st);
500
501 if (!open_ok)
502 return NULL;
503
504 g = load_commit_graph_one_fd_st(source, fd, &st);
505 if (g)
506 g->filename = xstrdup(graph_file);
507
508 return g;
509}
510
511static struct commit_graph *load_commit_graph_v1(struct odb_source *source)
512{

Callers 2

load_commit_graph_v1Function · 0.85

Calls 3

open_commit_graphFunction · 0.85
xstrdupFunction · 0.85

Tested by

no test coverage detected