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

Function prepare_ref_index

remote.c:1533–1539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1531}
1532
1533static void prepare_ref_index(struct string_list *ref_index, struct ref *ref)
1534{
1535 for ( ; ref; ref = ref->next)
1536 string_list_append_nodup(ref_index, ref->name)->util = ref;
1537
1538 string_list_sort(ref_index);
1539}
1540
1541/*
1542 * Given only the set of local refs, sanity-check the set of push

Callers 1

match_push_refsFunction · 0.85

Calls 2

string_list_append_nodupFunction · 0.85
string_list_sortFunction · 0.70

Tested by

no test coverage detected