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

Function paths_and_oids_clear

revision.c:133–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133static void paths_and_oids_clear(struct hashmap *map)
134{
135 struct hashmap_iter iter;
136 struct path_and_oids_entry *entry;
137
138 hashmap_for_each_entry(map, &iter, entry, ent /* member name */) {
139 oidset_clear(&entry->trees);
140 free(entry->path);
141 }
142
143 hashmap_clear_and_free(map, struct path_and_oids_entry, ent);
144}
145
146static void paths_and_oids_insert(struct hashmap *map,
147 const char *path,

Callers 1

Calls 1

oidset_clearFunction · 0.85

Tested by

no test coverage detected