git_oid_streq

Check if an oid equals an hex formatted object id.

extern (C) nothrow @nogc
int
git_oid_streq
(
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

0 in case of a match, -1 otherwise.

Meta