git_remote_create_with_fetchspec

Add a remote with the provided fetch refspec (or default if null) to the repository's configuration.

extern (C) nothrow @nogc
int
git_remote_create_with_fetchspec

Parameters

out_ libgit2_d.types.git_remote**

the resulting remote

repo libgit2_d.types.git_repository*

the repository in which to create the remote

name const(char)*

the remote's name

url const(char)*

the remote's url

fetch const(char)*

the remote fetch value

Return Value

Type: int

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

Meta