1 #include "git-compat-util.h"
5 const char *blob_type
= "blob";
7 struct blob
*lookup_blob(struct repository
*r
, const struct object_id
*oid
)
9 struct object
*obj
= lookup_object(r
, oid
);
11 return create_object(r
, oid
, alloc_blob_node(r
));
12 return object_as_type(obj
, OBJ_BLOB
, 0);
15 void parse_blob_buffer(struct blob
*item
)
17 item
->object
.parsed
= 1;