1#include "cache.h"
2#include "blob.h"
3#include "repository.h"
45
const char *blob_type = "blob";
67
struct blob *lookup_blob(const struct object_id *oid)
8{
9struct object *obj = lookup_object(oid->hash);
10if (!obj)
11return create_object(the_repository, oid->hash,
12alloc_blob_node());
13return object_as_type(obj, OBJ_BLOB, 0);
14}
1516
int parse_blob_buffer(struct blob *item, void *buffer, unsigned long size)
17{
18item->object.parsed = 1;
19return 0;
20}