libgit2

git_reference_has_log

Version:

Check if a reflog exists for the specified reference.

Signature

int git_reference_has_log(git_repository *repo, const char *refname);

Parameters

In
repo

the repository

const char *
In
refname

the reference's name

Returns

int

0 when no reflog can be found, 1 when it exists; otherwise an error code.

Versions