libgit2

git_transaction_set_reflog

Version:

Set the reflog of a reference

Set the specified reference's reflog. If this is combined with setting the target, that update won't be written to the reflog.

Signature

int git_transaction_set_reflog(git_transaction *tx, const char *refname, const git_reflog *reflog);

Parameters

In
tx

the transaction

const char *
In
refname

the reference whose reflog to set

In
reflog

the reflog as it should be written out

Returns

int

0, GIT_ENOTFOUND if the reference is not among the locked ones, or an error code

Versions