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, git_repository *repo, const char *name);

Parameters

In
out

pointer to reflog

In
repo

the repository

const char *
In
name

reference to look up

Returns

int

0 or an error code

Versions