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

Function copy_ref_list

remote.c:1007–1017  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1005}
1006
1007struct ref *copy_ref_list(const struct ref *ref)
1008{
1009 struct ref *ret = NULL;
1010 struct ref **tail = &ret;
1011 while (ref) {
1012 *tail = copy_ref(ref);
1013 ref = ref->next;
1014 tail = &((*tail)->next);
1015 }
1016 return ret;
1017}
1018
1019void free_one_ref(struct ref *ref)
1020{

Callers 3

do_fetch_packFunction · 0.85
do_fetch_pack_v2Function · 0.85
get_push_ref_statesFunction · 0.85

Calls 1

copy_refFunction · 0.85

Tested by

no test coverage detected