git_remote_add_fetch

Add a fetch refspec to the remote's configuration

Add the given refspec to the fetch list in the configuration. No loaded remote instances will be affected.

extern (C) nothrow @nogc
int
git_remote_add_fetch
(,
const(char)* remote
,
const(char)* refspec
)

Parameters

repo libgit2_d.types.git_repository*

the repository in which to change the configuration

remote const(char)*

the name of the remote to change

refspec const(char)*

the new fetch refspec

Return Value

Type: int

0, git_error_code.GIT_EINVALIDSPEC if refspec is invalid or an error value

Meta