THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Git Source Code Mirror - This is a publish-only repository and all pull requests are ignored. Please follow Documentation/SubmittingPatches procedure for any of your improvements.
git
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
688B

  1. #ifndef BLOB_H
  2. #define BLOB_H
  3. #include "object.h"
  4. extern const char *blob_type;
  5. struct blob {
  6. struct object object;
  7. };
  8. struct blob *lookup_blob(struct repository *r, const struct object_id *oid);
  9. int parse_blob_buffer(struct blob *item, void *buffer, unsigned long size);
  10. /**
  11. * Blobs do not contain references to other objects and do not have
  12. * structured data that needs parsing. However, code may use the
  13. * "parsed" bit in the struct object for a blob to determine whether
  14. * its content has been found to actually be available, so
  15. * parse_blob_buffer() is used (by object.c) to flag that the object
  16. * has been read successfully from the database.
  17. **/
  18. #endif /* BLOB_H */