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

Function get_head

http-backend.c:599–608  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

597}
598
599static void get_head(struct strbuf *hdr, char *arg UNUSED)
600{
601 struct strbuf buf = STRBUF_INIT;
602
603 select_getanyfile(hdr);
604 refs_head_ref_namespaced(get_main_ref_store(the_repository),
605 show_head_ref, &buf);
606 send_strbuf(hdr, "text/plain", &buf);
607 strbuf_release(&buf);
608}
609
610static void get_info_packs(struct strbuf *hdr, char *arg UNUSED)
611{

Callers

nothing calls this directly

Calls 5

select_getanyfileFunction · 0.85
refs_head_ref_namespacedFunction · 0.85
get_main_ref_storeFunction · 0.85
send_strbufFunction · 0.85
strbuf_releaseFunction · 0.85

Tested by

no test coverage detected