libgit2

git_remote_get_push_refspecs

Version:

Get the remote's list of push refspecs

The memory is owned by the user and should be freed with git_strarray_free.

Signature

int git_remote_get_push_refspecs(git_strarray *array, const git_remote *remote);

Parameters

In
array

pointer to the array in which to store the strings

In
remote

the remote to query

Returns

int

0 or an error code.

Versions