libgit2

git_oid_is_zero

Version:

Check is an oid is all zeros.

Signature

int git_oid_is_zero(const git_oid *id);

Parameters

In
id

the object ID to check

Returns

int

1 if all zeros, 0 otherwise.

Versions