MCPcopy Index your code
hub / github.com/git/git / get_ref_dir

Function get_ref_dir

refs/ref-cache.c:21–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21struct 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
36struct ref_entry *create_ref_entry(const char *refname,
37 const char *referent,

Callers 6

search_for_subdirFunction · 0.85
prime_ref_dirFunction · 0.85
cache_ref_iterator_seekFunction · 0.85
get_loose_ref_cacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected