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

Function mark_our_ref

upload-pack.c:1194–1205  ·  view source on GitHub ↗

return non-zero if the ref is hidden, otherwise 0 */

Source from the content-addressed store, hash-verified

1192
1193/* return non-zero if the ref is hidden, otherwise 0 */
1194static int mark_our_ref(const char *refname, const char *refname_full,
1195 const struct object_id *oid, const struct strvec *hidden_refs)
1196{
1197 struct object *o = lookup_unknown_object(the_repository, oid);
1198
1199 if (ref_is_hidden(refname, refname_full, hidden_refs)) {
1200 o->flags |= HIDDEN_REF;
1201 return 1;
1202 }
1203 o->flags |= OUR_REF;
1204 return 0;
1205}
1206
1207static int check_ref(const struct reference *ref, void *cb_data)
1208{

Callers 2

check_refFunction · 0.85
write_v0_refFunction · 0.85

Calls 2

lookup_unknown_objectFunction · 0.85
ref_is_hiddenFunction · 0.85

Tested by

no test coverage detected