git_oid_fromstr

Parse a hex formatted object id into a git_oid.

extern (C) nothrow @nogc
int
git_oid_fromstr
(,
const(char)* str
)

Parameters

out_ .git_oid*

oid structure the result is written into.

str const(char)*

input hex string; must be pointing at the start of the hex sequence and have at least the number of bytes needed for an oid encoded in hex (40 bytes).

Return Value

Type: int

0 or an error code

Meta