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

Function is_promisor_object

packfile.c:2781–2799  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2779}
2780
2781int is_promisor_object(struct repository *r, const struct object_id *oid)
2782{
2783 static struct oidset promisor_objects;
2784 static int promisor_objects_prepared;
2785
2786 if (!promisor_objects_prepared) {
2787 if (repo_has_promisor_remote(r)) {
2788 struct add_promisor_object_data data = {
2789 .repo = r,
2790 .set = &promisor_objects,
2791 };
2792
2793 odb_for_each_object(r->objects, NULL, add_promisor_object, &data,
2794 ODB_FOR_EACH_OBJECT_PROMISOR_ONLY | ODB_FOR_EACH_OBJECT_PACK_ORDER);
2795 }
2796 promisor_objects_prepared = 1;
2797 }
2798 return oidset_contains(&promisor_objects, oid);
2799}
2800
2801int parse_pack_header_option(const char *in, unsigned char *out, unsigned int *len)
2802{

Callers 14

deref_tagFunction · 0.85
get_referenceFunction · 0.85
handle_commitFunction · 0.85
process_parentsFunction · 0.85
process_blobFunction · 0.85
process_treeFunction · 0.85
fsck_blobsFunction · 0.85
finish_object__maFunction · 0.85
mark_objectFunction · 0.85
check_reachable_objectFunction · 0.85
fsck_handle_reflog_oidFunction · 0.85

Calls 3

repo_has_promisor_remoteFunction · 0.85
odb_for_each_objectFunction · 0.85
oidset_containsFunction · 0.85

Tested by

no test coverage detected