Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
118
void init_commit_node(struct commit *c)
119
{
120
c->object.type = OBJ_COMMIT;
121
c->index = alloc_commit_index();
122
}
123
124
void *alloc_commit_node(struct repository *r)
125
{
Callers
2
alloc_commit_node
Function · 0.85
object_as_type
Function · 0.85
Calls
1
alloc_commit_index
Function · 0.85
Tested by
no test coverage detected