| 703 | } |
| 704 | |
| 705 | static 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 | |
| 722 | struct commit_graph *read_commit_graph_one(struct odb_source *source) |
| 723 | { |
no test coverage detected