libgit2

git_remote_load

Version:

Get the information for a particular remote

The name will be checked for validity. See git_tag_create() for rules about valid names.

Signature

int git_remote_load(git_remote **out, git_repository *repo, const char *name);

Parameters

In
out

pointer to the new remote object

In
repo

the associated repository

const char *
In
name

the remote's name

Returns

int

0, GIT_ENOTFOUND, GIT_EINVALIDSPEC or an error code

Versions