1#include "cache.h"
2#include "blob.h"
34
const char *blob_type = "blob";
56
struct blob *lookup_blob(const struct object_id *oid)
7{
8struct object *obj = lookup_object(oid->hash);
9if (!obj)
10return create_object(oid->hash, alloc_blob_node());
11return object_as_type(obj, OBJ_BLOB, 0);
12}
1314
int parse_blob_buffer(struct blob *item, void *buffer, unsigned long size)
15{
16item->object.parsed = 1;
17return 0;
18}