treewide: reduce includes of cache.h in other headers
[git.git] / blob.h
blob74555c90c449ffa89226d264f46c433580707f61
1 #ifndef BLOB_H
2 #define BLOB_H
4 #include "object.h"
6 extern const char *blob_type;
8 struct blob {
9 struct object object;
12 struct blob *lookup_blob(struct repository *r, const struct object_id *oid);
14 /**
15 * Blobs do not contain references to other objects and do not have
16 * structured data that needs parsing. However, code may use the
17 * "parsed" bit in the struct object for a blob to determine whether
18 * its content has been found to actually be available, so
19 * parse_blob_buffer() is used (by object.c) to flag that the object
20 * has been read successfully from the database.
21 **/
22 void parse_blob_buffer(struct blob *item);
24 #endif /* BLOB_H */