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

Function get_main_ref_store

refs.c:2352–2364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2350}
2351
2352struct ref_store *get_main_ref_store(struct repository *r)
2353{
2354 if (r->refs_private)
2355 return r->refs_private;
2356
2357 if (!r->gitdir)
2358 BUG("attempting to get main_ref_store outside of repository");
2359
2360 r->refs_private = ref_store_init(r, r->ref_storage_format,
2361 r->gitdir, REF_STORE_ALL_CAPS);
2362 r->refs_private = maybe_debug_wrap_ref_store(r->gitdir, r->refs_private);
2363 return r->refs_private;
2364}
2365
2366/*
2367 * Associate a ref store with a name. It is a fatal error to call this

Callers 15

include_by_branchFunction · 0.85
mark_tipsFunction · 0.85
append_similar_refFunction · 0.85
guess_refsFunction · 0.85
merge_switch_to_resultFunction · 0.85
head_atom_parserFunction · 0.85
show_refFunction · 0.85
populate_valueFunction · 0.85

Calls 2

ref_store_initFunction · 0.85

Tested by 1

get_storeFunction · 0.68