MCPcopy Index your code
hub / github.com/git/git / alloc_packed_git

Function alloc_packed_git

packfile.c:304–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304static 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
313static char *pack_path_from_idx(const char *idx_path)
314{

Callers 2

parse_pack_indexFunction · 0.85
add_packed_gitFunction · 0.85

Calls 2

st_addFunction · 0.85
xmallocFunction · 0.70

Tested by

no test coverage detected