| 19 | } |
| 20 | |
| 21 | struct ref_dir *get_ref_dir(struct ref_entry *entry) |
| 22 | { |
| 23 | struct ref_dir *dir; |
| 24 | assert(entry->flag & REF_DIR); |
| 25 | dir = &entry->u.subdir; |
| 26 | if (entry->flag & REF_INCOMPLETE) { |
| 27 | if (!dir->cache->fill_ref_dir) |
| 28 | BUG("incomplete ref_store without fill_ref_dir function"); |
| 29 | |
| 30 | dir->cache->fill_ref_dir(dir->cache->ref_store, dir, entry->name); |
| 31 | entry->flag &= ~REF_INCOMPLETE; |
| 32 | } |
| 33 | return dir; |
| 34 | } |
| 35 | |
| 36 | struct ref_entry *create_ref_entry(const char *refname, |
| 37 | const char *referent, |
no outgoing calls
no test coverage detected