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

Function init_commit_node

alloc.c:118–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void init_commit_node(struct commit *c)
119{
120 c->object.type = OBJ_COMMIT;
121 c->index = alloc_commit_index();
122}
123
124void *alloc_commit_node(struct repository *r)
125{

Callers 2

alloc_commit_nodeFunction · 0.85
object_as_typeFunction · 0.85

Calls 1

alloc_commit_indexFunction · 0.85

Tested by

no test coverage detected