libgit2

git_remote_set_pushspec

Version:

Set the remote's push refspec

Signature

int git_remote_set_pushspec(git_remote *remote, const char *spec);

Parameters

In
remote

the remote

const char *
In
spec

the new push refspec

Returns

int

0 or an error value

Versions