libgit2

git_reflog_rename

Version:

Rename a reflog

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

Parameters

In
repo

the repository

const char *
In
old_name

the old name of the reference

const char *
In
name

the new name of the reference

Returns

int

0 on success, GIT_EINVALIDSPEC or an error code

Versions