Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/git/git
/ git_hash_alloc
Function
git_hash_alloc
hash.c:251–254 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
249
}
250
251
struct git_hash_ctx *git_hash_alloc(void)
252
{
253
return xmalloc(sizeof(struct git_hash_ctx));
254
}
255
256
void git_hash_free(struct git_hash_ctx *ctx)
257
{
Callers
2
new
Method · 0.85
clone
Method · 0.85
Calls
1
xmalloc
Function · 0.70
Tested by
no test coverage detected