libgit2

git_remote_add_push

Version:

Add a push refspec to the remote

Convenience function for adding a single push refspec to the current list in 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