libgit2

git_blob_set_rawcontent_fromfile

Version:

Fill a blob with the contents inside the pointed file.

Signature

int git_blob_set_rawcontent_fromfile(git_blob *blob, const char *filename);

Parameters

In
blob

pointer to the new blob

const char *
In
filename

name of the file to read

Returns

int

0 on success; error code otherwise

Versions