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

Function alloc_commit_node

alloc.c:124–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void *alloc_commit_node(struct repository *r)
125{
126 struct commit *c = alloc_node(r->parsed_objects->commit_state, sizeof(struct commit));
127 init_commit_node(c);
128 return c;
129}

Callers 5

make_virtual_commitFunction · 0.85
fake_working_tree_commitFunction · 0.85
verify_one_commit_graphFunction · 0.85
lookup_commitFunction · 0.85
push_pseudo_mergeFunction · 0.85

Calls 2

alloc_nodeFunction · 0.85
init_commit_nodeFunction · 0.85

Tested by

no test coverage detected