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

Function clear_paths_to_lists

path-walk.c:414–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412}
413
414static void clear_paths_to_lists(struct strmap *map)
415{
416 struct hashmap_iter iter;
417 struct strmap_entry *e;
418
419 hashmap_for_each_entry(&map->map, &iter, e, ent) {
420 struct type_and_oid_list *list = e->value;
421 oid_array_clear(&list->oids);
422 }
423 strmap_clear(map, 1);
424 strmap_init(map);
425}
426
427static struct repository *edge_repo;
428static struct type_and_oid_list *edge_tree_list;

Callers 1

walk_objects_by_pathFunction · 0.85

Calls 3

oid_array_clearFunction · 0.85
strmap_clearFunction · 0.85
strmap_initFunction · 0.85

Tested by

no test coverage detected