MCPcopy Create free account
hub / github.com/git/git / find_dir_entry__hash

Function find_dir_entry__hash

name-hash.c:46–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46static struct dir_entry *find_dir_entry__hash(struct index_state *istate,
47 const char *name, unsigned int namelen, unsigned int hash)
48{
49 struct dir_entry key;
50 hashmap_entry_init(&key.ent, hash);
51 key.namelen = namelen;
52 return hashmap_get_entry(&istate->dir_hash, &key, ent, name);
53}
54
55static struct dir_entry *find_dir_entry(struct index_state *istate,
56 const char *name, unsigned int namelen)

Callers 2

find_dir_entryFunction · 0.85

Calls 1

hashmap_entry_initFunction · 0.85

Tested by

no test coverage detected