| 311 | } |
| 312 | |
| 313 | static char *pack_path_from_idx(const char *idx_path) |
| 314 | { |
| 315 | size_t len; |
| 316 | if (!strip_suffix(idx_path, ".idx", &len)) |
| 317 | BUG("idx path does not end in .idx: %s", idx_path); |
| 318 | return xstrfmt("%.*s.pack", (int)len, idx_path); |
| 319 | } |
| 320 | |
| 321 | struct packed_git *parse_pack_index(struct repository *r, unsigned char *sha1, |
| 322 | const char *idx_path) |
no test coverage detected