libgit2

git_remote_ls

Version:

Get a list of refs at the remote

The remote (or more exactly its transport) must be connected. The memory belongs to the remote.

The array will stay valid as long as the remote object exists and its transport isn't changed, but a copy is recommended for usage of the data.

Signature

int git_remote_ls(const git_remote_head ***out, size_t *size, git_remote *remote);

Parameters

In
out

pointer to the array

size_t *
In
size

the number of remote heads

In
remote

the remote

Returns

int

0 on success, or an error code

Versions