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

Function alloc_object_node

alloc.c:100–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void *alloc_object_node(struct repository *r)
101{
102 struct object *obj = alloc_node(r->parsed_objects->object_state, sizeof(union any_object));
103 obj->type = OBJ_NONE;
104 return obj;
105}
106
107/*
108 * The returned count is to be used as an index into commit slabs,

Callers 1

lookup_unknown_objectFunction · 0.85

Calls 1

alloc_nodeFunction · 0.85

Tested by

no test coverage detected