libgit2

git_reference_ensure_log

Version:

Ensure there is a reflog for a particular reference.

Make sure that successive updates to the reference will append to its log.

Signature

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

Parameters

In
repo

the repository

const char *
In
refname

the reference's name

Returns

int

0 or an error code.

Versions