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

Function read_blob_entry

entry.c:92–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void *read_blob_entry(const struct cache_entry *ce, size_t *size)
93{
94 enum object_type type;
95 void *blob_data = odb_read_object(the_repository->objects, &ce->oid,
96 &type, size);
97
98 if (blob_data) {
99 if (type == OBJ_BLOB)
100 return blob_data;
101 free(blob_data);
102 }
103 return NULL;
104}
105
106static int open_output_fd(char *path, const struct cache_entry *ce, int to_tempfile)
107{

Callers 2

write_entryFunction · 0.85
write_pc_item_to_fdFunction · 0.85

Calls 1

odb_read_objectFunction · 0.85

Tested by

no test coverage detected