Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
124
void *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_commit
Function · 0.85
fake_working_tree_commit
Function · 0.85
verify_one_commit_graph
Function · 0.85
lookup_commit
Function · 0.85
push_pseudo_merge
Function · 0.85
Calls
2
alloc_node
Function · 0.85
init_commit_node
Function · 0.85
Tested by
no test coverage detected