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

Function remote_state_new

remote.c:2872–2881  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2870}
2871
2872struct remote_state *remote_state_new(void)
2873{
2874 struct remote_state *r;
2875
2876 CALLOC_ARRAY(r, 1);
2877
2878 hashmap_init(&r->remotes_hash, remotes_hash_cmp, NULL, 0);
2879 hashmap_init(&r->branches_hash, branches_hash_cmp, NULL, 0);
2880 return r;
2881}
2882
2883void remote_state_clear(struct remote_state *remote_state)
2884{

Callers 1

initialize_repositoryFunction · 0.85

Calls 1

hashmap_initFunction · 0.85

Tested by

no test coverage detected