| 302 | } |
| 303 | |
| 304 | static struct packed_git *alloc_packed_git(struct repository *r, int extra) |
| 305 | { |
| 306 | struct packed_git *p = xmalloc(st_add(sizeof(*p), extra)); |
| 307 | memset(p, 0, sizeof(*p)); |
| 308 | p->pack_fd = -1; |
| 309 | p->repo = r; |
| 310 | return p; |
| 311 | } |
| 312 | |
| 313 | static char *pack_path_from_idx(const char *idx_path) |
| 314 | { |
no test coverage detected