* Clear and free all entries in dir, recursively. */
| 86 | * Clear and free all entries in dir, recursively. |
| 87 | */ |
| 88 | static void clear_ref_dir(struct ref_dir *dir) |
| 89 | { |
| 90 | int i; |
| 91 | for (i = 0; i < dir->nr; i++) |
| 92 | free_ref_entry(dir->entries[i]); |
| 93 | FREE_AND_NULL(dir->entries); |
| 94 | dir->sorted = dir->nr = dir->alloc = 0; |
| 95 | } |
| 96 | |
| 97 | struct ref_entry *create_dir_entry(struct ref_cache *cache, |
| 98 | const char *dirname, size_t len) |
no test coverage detected