git_remote_rename

Give the remote a new name

All remote-tracking branches and configuration settings for the remote are updated.

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

No loaded instances of a the remote with the old name will change their name or their list of refspecs.

extern (C) nothrow @nogc
int
git_remote_rename

Parameters

problems libgit2_d.strarray.git_strarray*

non-default refspecs cannot be renamed and will be stored here for further processing by the caller. Always free this strarray on successful return.

repo libgit2_d.types.git_repository*

the repository in which to rename

name const(char)*

the current name of the remote

new_name const(char)*

the new name the remote should bear

Return Value

Type: int

0, git_error_code.GIT_EINVALIDSPEC, git_error_code.GIT_EEXISTS or an error code

Meta