| 242 | } |
| 243 | |
| 244 | int 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 | |
| 256 | struct commit_graph *load_commit_graph_one_fd_st(struct odb_source *source, |
| 257 | int fd, struct stat *st) |
no outgoing calls
no test coverage detected