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

Function get_remote_ref

remote.c:2049–2057  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2047}
2048
2049struct ref *get_remote_ref(const struct ref *remote_refs, const char *name)
2050{
2051 const struct ref *ref = find_ref_by_name_abbrev(remote_refs, name);
2052
2053 if (!ref)
2054 return NULL;
2055
2056 return copy_ref(ref);
2057}
2058
2059static struct ref *get_local_ref(const char *name)
2060{

Callers 2

get_fetch_mapFunction · 0.85
get_ref_mapFunction · 0.85

Calls 2

find_ref_by_name_abbrevFunction · 0.85
copy_refFunction · 0.85

Tested by

no test coverage detected