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 *remotes_list, git_repository *repo);

Parameters

In
remotes_list

a string array with the names of the remotes

In
repo

the repository to query

Returns

int

0 or an error code

Versions