MCPcopy Create free account
hub / github.com/git/git / odb_source_write_object

Function odb_source_write_object

odb/source.h:409–418  ·  view source on GitHub ↗

* Write an object into the object database source. Returns 0 on success, a * negative error code otherwise. Populates the given out pointers for the * object ID and the compatibility object ID, if non-NULL. */

Source from the content-addressed store, hash-verified

407 * object ID and the compatibility object ID, if non-NULL.
408 */
409static inline int odb_source_write_object(struct odb_source *source,
410 const void *buf, unsigned long len,
411 enum object_type type,
412 struct object_id *oid,
413 struct object_id *compat_oid,
414 enum odb_write_object_flags flags)
415{
416 return source->write_object(source, buf, len, type, oid,
417 compat_oid, flags);
418}
419
420/*
421 * Write an object into the object database source via a stream. The overall

Calls

no outgoing calls