libgit2

git_reference_cmp

Version:

Compare two references.

Signature

int git_reference_cmp(const git_reference *ref1, const git_reference *ref2);

Parameters

In
ref1

The first git_reference

In
ref2

The second git_reference

Returns

int

0 if the same, else a stable but meaningless ordering.

Versions