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

Function open_commit_graph

commit-graph.c:244–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244int open_commit_graph(const char *graph_file, int *fd, struct stat *st)
245{
246 *fd = git_open(graph_file);
247 if (*fd < 0)
248 return 0;
249 if (fstat(*fd, st)) {
250 close(*fd);
251 return 0;
252 }
253 return 1;
254}
255
256struct commit_graph *load_commit_graph_one_fd_st(struct odb_source *source,
257 int fd, struct stat *st)

Callers 2

load_commit_graph_oneFunction · 0.85
graph_verifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected