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

Function free_ref_entry

refs/ref-cache.c:63–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61static void clear_ref_dir(struct ref_dir *dir);
62
63static void free_ref_entry(struct ref_entry *entry)
64{
65 if (entry->flag & REF_DIR) {
66 /*
67 * Do not use get_ref_dir() here, as that might
68 * trigger the reading of loose refs.
69 */
70 clear_ref_dir(&entry->u.subdir);
71 } else {
72 free(entry->u.value.referent);
73 }
74 free(entry);
75}
76
77void free_ref_cache(struct ref_cache *cache)
78{

Callers 3

free_ref_cacheFunction · 0.85
clear_ref_dirFunction · 0.85
sort_ref_dirFunction · 0.85

Calls 1

clear_ref_dirFunction · 0.85

Tested by

no test coverage detected