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

Function create_dir_entry

refs/ref-cache.c:97–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97struct 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
108static int ref_entry_cmp(const void *a, const void *b)
109{

Callers 4

create_ref_cacheFunction · 0.85
loose_fill_ref_dirFunction · 0.85
get_loose_ref_cacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected