libgit2

git_odb_write

Version:

Write an object to the database.

Signature

int git_odb_write(git_oid *id, git_odb *db, git_rawobj *obj);

Parameters

In
id

identity of the object written.

In
db

database to which the object should be written.

In
obj

object descriptor for the object to write.

Returns

int
  • GIT_SUCCESS if the object was written;
  • GIT_ERROR otherwise.

Versions