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

Function odb_read_object

odb.c:744–760  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

742}
743
744void *odb_read_object(struct object_database *odb,
745 const struct object_id *oid,
746 enum object_type *type,
747 size_t *size)
748{
749 struct object_info oi = OBJECT_INFO_INIT;
750 unsigned flags = OBJECT_INFO_DIE_IF_CORRUPT | OBJECT_INFO_LOOKUP_REPLACE;
751 void *data;
752
753 oi.typep = type;
754 oi.sizep = size;
755 oi.contentp = &data;
756 if (odb_read_object_info_extended(odb, oid, &oi, flags))
757 return NULL;
758
759 return data;
760}
761
762void *odb_read_object_peeled(struct object_database *odb,
763 const struct object_id *oid,

Callers 15

git_config_from_blob_oidFunction · 0.85
gpg_verify_tagFunction · 0.85
parse_tagFunction · 0.85
read_blob_entryFunction · 0.85
read_oid_strbufFunction · 0.85
tree_is_completeFunction · 0.85
grep_source_load_oidFunction · 0.85
fmt_merge_msg_sigsFunction · 0.85
read_mailmap_blobFunction · 0.85
read_mmblobFunction · 0.85
start_putFunction · 0.85

Calls 1

Tested by 1

write_ref_deltaFunction · 0.68