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

Function hashmap_contains_path

dir.c:933–943  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

931}
932
933static int hashmap_contains_path(struct hashmap *map,
934 struct strbuf *pattern)
935{
936 struct pattern_entry p;
937
938 /* Check straight mapping */
939 p.pattern = pattern->buf;
940 p.patternlen = pattern->len;
941 hashmap_entry_init(&p.ent, fspathhash(p.pattern));
942 return !!hashmap_get_entry(map, &p, ent, NULL);
943}
944
945int hashmap_contains_parent(struct hashmap *map,
946 const char *path,

Callers 2

hashmap_contains_parentFunction · 0.85

Calls 2

hashmap_entry_initFunction · 0.85
fspathhashFunction · 0.85

Tested by

no test coverage detected