| 95 | } |
| 96 | |
| 97 | struct ref_entry *create_dir_entry(struct ref_cache *cache, |
| 98 | const char *dirname, size_t len) |
| 99 | { |
| 100 | struct ref_entry *direntry; |
| 101 | |
| 102 | FLEX_ALLOC_MEM(direntry, name, dirname, len); |
| 103 | direntry->u.subdir.cache = cache; |
| 104 | direntry->flag = REF_DIR | REF_INCOMPLETE; |
| 105 | return direntry; |
| 106 | } |
| 107 | |
| 108 | static int ref_entry_cmp(const void *a, const void *b) |
| 109 | { |
no outgoing calls
no test coverage detected