diff --git a/object-store.h b/object-store.h index 7f7b3cdd80..f91e0c99b4 100644 --- a/object-store.h +++ b/object-store.h @@ -187,6 +187,14 @@ int hash_object_file_literally(const void *buf, unsigned long len, const char *type, struct object_id *oid, unsigned flags); +/* + * Add an object file to the in-memory object store, without writing it + * to disk. + * + * Callers are responsible for calling write_object_file to record the + * object in persistent storage before writing any other new objects + * that reference it. + */ int pretend_object_file(void *, unsigned long, enum object_type, struct object_id *oid);