libgit2

git_push_add_refspec

Version:

Add a refspec to be pushed

Signature

int git_push_add_refspec(git_push *push, const char *refspec);

Parameters

In
push

The push object

const char *
In
refspec

Refspec string

Returns

int

0 or an error code

Versions