| 160 | } |
| 161 | |
| 162 | int is_bundle(const char *path, int quiet) |
| 163 | { |
| 164 | struct bundle_header header = BUNDLE_HEADER_INIT; |
| 165 | int fd = open(path, O_RDONLY); |
| 166 | |
| 167 | if (fd < 0) |
| 168 | return 0; |
| 169 | fd = read_bundle_header_fd(fd, &header, quiet ? NULL : path); |
| 170 | if (fd >= 0) |
| 171 | close(fd); |
| 172 | bundle_header_release(&header); |
| 173 | return (fd >= 0); |
| 174 | } |
| 175 | |
| 176 | static int list_refs(struct string_list *r, int argc, const char **argv) |
| 177 | { |
no test coverage detected