libgit2

git_remote_add_push

Version:

Add a push refspec to the remote

Signature

int git_remote_add_push(git_remote *remote, const char *refspec);

Parameters

In
remote

the remote

const char *
In
refspec

the new push refspec

Returns

int

0 or an error value

Versions