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

Function allow_hidden_refs

upload-pack.c:648–653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

646}
647
648static int allow_hidden_refs(enum allow_uor allow_uor)
649{
650 if ((allow_uor & ALLOW_ANY_SHA1) == ALLOW_ANY_SHA1)
651 return 1;
652 return !(allow_uor & (ALLOW_TIP_SHA1 | ALLOW_REACHABLE_SHA1));
653}
654
655static void for_each_namespaced_ref_1(refs_for_each_cb fn,
656 struct upload_pack_data *data)

Callers 2

is_our_refFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected