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

Function odb_has_object

odb.c:811–824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

809}
810
811int odb_has_object(struct object_database *odb, const struct object_id *oid,
812 enum odb_has_object_flags flags)
813{
814 unsigned object_info_flags = 0;
815
816 if (!startup_info->have_repository)
817 return 0;
818 if (!(flags & ODB_HAS_OBJECT_RECHECK_PACKED))
819 object_info_flags |= OBJECT_INFO_QUICK;
820 if (!(flags & ODB_HAS_OBJECT_FETCH_PROMISOR))
821 object_info_flags |= OBJECT_INFO_SKIP_FETCH_OBJECT;
822
823 return odb_read_object_info_extended(odb, oid, NULL, object_info_flags) >= 0;
824}
825
826int odb_freshen_object(struct object_database *odb,
827 const struct object_id *oid)

Callers 15

deref_without_lazy_fetchFunction · 0.85
add_oids_to_setFunction · 0.85
update_shallowFunction · 0.85
got_oidFunction · 0.85
fill_active_slotFunction · 0.85
fetch_objectFunction · 0.85
cache_tree_fully_validFunction · 0.85
update_oneFunction · 0.85
tree_is_completeFunction · 0.85
already_writtenFunction · 0.85
one_remote_refFunction · 0.85

Calls 1

Tested by

no test coverage detected