]>
git.ipfire.org Git - thirdparty/git.git/blob - blob.c
3 #include "repository.h"
6 const char *blob_type
= "blob";
8 struct blob
*lookup_blob(struct repository
*r
, const struct object_id
*oid
)
10 struct object
*obj
= lookup_object(r
, oid
->hash
);
12 return create_object(r
, oid
->hash
,
14 return object_as_type(r
, obj
, OBJ_BLOB
, 0);
17 int parse_blob_buffer(struct blob
*item
, void *buffer
, unsigned long size
)
19 item
->object
.parsed
= 1;