git_remote_add_push

Add a push refspec to the remote's configuration

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

extern (C) nothrow @nogc
int
git_remote_add_push
(,
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 push refspec

Return Value

Type: int

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

Meta