libgit2

git_reflog_rename

Version:

Rename the reflog for the given reference

The reflog to be renamed is expected to already exist

The new name will be checked for validity. See git_reference_create_symbolic() for rules about valid names.

Signature

int git_reflog_rename(git_reference *ref, const char *name);

Parameters

In
ref

the reference

const char *
In
name

the new name of the reference

Returns

int

0 on success, GIT_EINVALIDSPEC or an error code

Versions