libgit2

git_reflog_append

Version:

Add a new entry to the reflog.

msg is optional and can be NULL.

Signature

int git_reflog_append(git_reflog *reflog, const git_oid *id, const git_signature *committer, const char *msg);

Parameters

In
reflog

an existing reflog object

In
id

the OID the reference is now pointing to

In
committer

the signature of the committer

const char *
In
msg

the reflog message

Returns

int

0 or an error code

Versions