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

Function refs_read_raw_ref

refs.c:2086–2097  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2084}
2085
2086int refs_read_raw_ref(struct ref_store *ref_store, const char *refname,
2087 struct object_id *oid, struct strbuf *referent,
2088 unsigned int *type, int *failure_errno)
2089{
2090 assert(failure_errno);
2091 if (is_pseudo_ref(refname))
2092 return refs_read_special_head(ref_store, refname, oid, referent,
2093 type, failure_errno);
2094
2095 return ref_store->be->read_raw_ref(ref_store, refname, oid, referent,
2096 type, failure_errno);
2097}
2098
2099int refs_read_symbolic_ref(struct ref_store *ref_store, const char *refname,
2100 struct strbuf *referent)

Callers 6

refs_resolve_ref_unsafeFunction · 0.85
read_ref_internalFunction · 0.85
cmd_show_ref__existsFunction · 0.85
cmd_refs_existsFunction · 0.85

Calls 2

is_pseudo_refFunction · 0.85
refs_read_special_headFunction · 0.85

Tested by

no test coverage detected