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

Function resolve_remote_symref

remote.c:2165–2175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2163}
2164
2165int resolve_remote_symref(struct ref *ref, struct ref *list)
2166{
2167 if (!ref->symref)
2168 return 0;
2169 for (; list; list = list->next)
2170 if (!strcmp(ref->symref, list->name)) {
2171 oidcpy(&ref->old_oid, &list->old_oid);
2172 return 0;
2173 }
2174 return 1;
2175}
2176
2177/*
2178 * Compute the commit ahead/behind values for the pair branch_name, base.

Callers 2

parse_info_refsFunction · 0.85
get_refs_list_using_listFunction · 0.85

Calls 1

oidcpyFunction · 0.85

Tested by

no test coverage detected