git_oid_strcmp

Compare an oid to an hex formatted object id.

extern (C) nothrow @nogc
int
git_oid_strcmp
(
const(.git_oid)* id
,
const(char)* str
)

Parameters

id const(.git_oid)*

oid structure.

str const(char)*

input hex string of an object id.

Return Value

Type: int

-1 if str is not valid, <0 if id sorts before str, 0 if id matches str, >0 if id sorts after str.

Meta