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

Function get_refs

remote-curl.c:579–589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

577}
578
579static struct ref *get_refs(int for_push)
580{
581 struct discovery *heads;
582
583 if (for_push)
584 heads = discover_refs("git-receive-pack", for_push);
585 else
586 heads = discover_refs("git-upload-pack", for_push);
587
588 return heads->refs;
589}
590
591static void output_refs(struct ref *refs)
592{

Callers 1

cmd_mainFunction · 0.85

Calls 1

discover_refsFunction · 0.85

Tested by

no test coverage detected