libgit2

git_odb_stream_finalize_write

Version:

Finish writing to an odb stream

The object will take its final name and will be available to the odb.

This method will fail if the total number of received bytes differs from the size declared with git_odb_open_wstream()

Signature

int git_odb_stream_finalize_write(git_oid *out, git_odb_stream *stream);

Parameters

In
out

pointer to store the resulting object's id

In
stream

the stream

Returns

int

0 on success; an error code otherwise

Versions