Merge branch 'jn/pretend-object-doc'
Warn programmers about pretend_object_file() that allows the code to tentatively use in-core objects. * jn/pretend-object-doc: sha1-file: document how to use pretend_object_file
This commit is contained in:
@ -208,6 +208,14 @@ int hash_object_file_literally(const void *buf, unsigned long len,
|
|||||||
const char *type, struct object_id *oid,
|
const char *type, struct object_id *oid,
|
||||||
unsigned flags);
|
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,
|
int pretend_object_file(void *, unsigned long, enum object_type,
|
||||||
struct object_id *oid);
|
struct object_id *oid);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user