mirror of
https://github.com/git/git
synced 2024-08-28 20:20:07 +00:00
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:
commit
b486d2ee81
|
@ -208,6 +208,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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue