libgit2

git_blob_create_from_stream_commit

Version:

Close the stream and write the blob to the object db

The stream will be closed and freed.

Signature

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

Parameters

In
out

the id of the new blob

In
stream

the stream to close

Returns

int

0 or an error code

Versions