| 90 | } |
| 91 | |
| 92 | void *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 | |
| 106 | static int open_output_fd(char *path, const struct cache_entry *ce, int to_tempfile) |
| 107 | { |
no test coverage detected