libgit2

git_reflog_read

Version:

Read the reflog for the given reference

If there is no reflog file for the given reference yet, an empty reflog object will be returned.

The reflog must be freed manually by using git_reflog_free().

Signature

int git_reflog_read(git_reflog **out, const git_reference *ref);

Parameters

In
out

pointer to reflog

In
ref

reference to read the reflog for

Returns

int

0 or an error code

Versions