| 491 | } |
| 492 | |
| 493 | static 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 | |
| 511 | static struct commit_graph *load_commit_graph_v1(struct odb_source *source) |
| 512 | { |
no test coverage detected