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

Function parsed_object_pool_new

object.c:554–571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

552}
553
554struct parsed_object_pool *parsed_object_pool_new(struct repository *repo)
555{
556 struct parsed_object_pool *o = xmalloc(sizeof(*o));
557 memset(o, 0, sizeof(*o));
558
559 o->repo = repo;
560 o->blob_state = alloc_state_alloc();
561 o->tree_state = alloc_state_alloc();
562 o->commit_state = alloc_state_alloc();
563 o->tag_state = alloc_state_alloc();
564 o->object_state = alloc_state_alloc();
565 o->is_shallow = -1;
566 CALLOC_ARRAY(o->shallow_stat, 1);
567
568 o->buffer_slab = allocate_commit_buffer_slab();
569
570 return o;
571}
572
573void parsed_object_pool_reset_commit_grafts(struct parsed_object_pool *o)
574{

Callers 1

initialize_repositoryFunction · 0.85

Calls 3

alloc_state_allocFunction · 0.85
xmallocFunction · 0.70

Tested by

no test coverage detected