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

Function get_local_heads

remote.c:2483–2490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2481}
2482
2483struct ref *get_local_heads(void)
2484{
2485 struct ref *local_refs = NULL, **local_tail = &local_refs;
2486
2487 refs_for_each_ref(get_main_ref_store(the_repository), one_local_ref,
2488 &local_tail);
2489 return local_refs;
2490}
2491
2492struct ref *guess_remote_head(const struct ref *head,
2493 const struct ref *refs,

Callers 6

transport_pushFunction · 0.85
cmd_mainFunction · 0.85
set_refspecsFunction · 0.85
cmd_send_packFunction · 0.85
get_push_ref_statesFunction · 0.85
push_checkFunction · 0.85

Calls 2

refs_for_each_refFunction · 0.85
get_main_ref_storeFunction · 0.85

Tested by

no test coverage detected