libgit2

git_oid_ncmp

Version:

Compare the first 'len' hexadecimal characters (packets of 4 bits) of two oid structures.

Signature

int git_oid_ncmp(const git_oid *a, const git_oid *b, unsigned int len);

Parameters

In
a

first oid structure.

In
b

second oid structure.

unsigned int
In
len

the number of hex chars to compare

Returns

int

0 in case of a match

Versions