MCPcopy Create free account
hub / github.com/git/git / pack_path_from_idx

Function pack_path_from_idx

packfile.c:313–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313static 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
321struct packed_git *parse_pack_index(struct repository *r, unsigned char *sha1,
322 const char *idx_path)

Callers 1

parse_pack_indexFunction · 0.85

Calls 2

strip_suffixFunction · 0.85
xstrfmtFunction · 0.85

Tested by

no test coverage detected