libgit2

git_remote_create_cb

Version:

The signature of a function matching git_remote_create, with an additional void* as a callback payload.

Callers of git_clone may provide a function matching this signature to override the remote creation and customization process during a clone operation.

Signature

typedef int git_remote_create_cb(git_remote **out, git_repository *repo, const char *name, const char *url, void *payload);

Parameters

Out
out

the resulting remote

In
repo

the repository in which to create the remote

const char *
In
name

the remote's name

const char *
In
url

the remote's url

void *
In
payload

an opaque payload

Returns

int

0, GIT_EINVALIDSPEC, GIT_EEXISTS or an error code

Versions