X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=blob.h;h=ea5d9e9f8b63be2c7048d19ee53feb06b0795c80;hb=56eb8b43ebdb38683ff5ce395d7b5e080d402b5b;hp=5cbf6d65ee88e1e0c0f1153af4aa7f80c3c48c16;hpb=b51ad4314078298194d23d46e2b4473ffd32a88a;p=git.git diff --git a/blob.h b/blob.h index 5cbf6d65e..59b394eea 100644 --- a/blob.h +++ b/blob.h @@ -9,6 +9,17 @@ struct blob { struct object object; }; -struct blob *lookup_blob(unsigned char *sha1); +struct blob *lookup_blob(const unsigned char *sha1); + +int parse_blob_buffer(struct blob *item, void *buffer, unsigned long size); + +/** + * Blobs do not contain references to other objects and do not have + * structured data that needs parsing. However, code may use the + * "parsed" bit in the struct object for a blob to determine whether + * its content has been found to actually be available, so + * parse_blob_buffer() is used (by object.c) to flag that the object + * has been read successfully from the database. + **/ #endif /* BLOB_H */