libgit2

git_reflog_read

Version:

Read the reflog for the given reference

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

Signature

int git_reflog_read(git_reflog **reflog, git_reference *ref);

Parameters

In
reflog

pointer to reflog

In
ref

reference to read the reflog for

Returns

int

GIT_SUCCESS or an error code

Versions