libgit2

git_remote_get

Version:

Get the information for a particular remote

Signature

int git_remote_get(struct git_remote **out, struct git_config *cfg, const char *name);

Parameters

struct git_remote **
In
out

pointer to the new remote object

struct git_config *
In
cfg

the repository's configuration

const char *
In
name

the remote's name

Returns

int

GIT_SUCCESS or an error code

Versions