libgit2

git_blob_create_from_stream_commit

Version:

Close the stream and finalize writing the blob to the object database.

The stream will be closed and freed.

Signature

int git_blob_create_from_stream_commit(git_oid *out, git_writestream *stream);

Parameters

Out
out

the id of the new blob

In
stream

the stream to close

Returns

int

0 or an error code

Versions