libgit2

git_remote_list

Version:

Get a list of the configured remotes for a repo

The string array must be freed by the user.

Signature

int git_remote_list(git_strarray *out, git_repository *repo);

Parameters

In
out

a string array which receives the names of the remotes

In
repo

the repository to query

Returns

int

0 or an error code

Versions