libgit2

git_oid_fromraw

Version:

Copy an already raw oid into a git_oid structure.

Signature

int git_oid_fromraw(git_oid *out, const unsigned char *raw);

Parameters

In
out

oid structure the result is written into.

const unsigned char *
In
raw

the raw input bytes to be copied.

Returns

int

0 on success or error code

Versions