libgit2

git_remote_set_cred_acquire_cb

Version:

Set a credentials acquisition callback for this remote. If the remote is not available for anonymous access, then you must set this callback in order to provide credentials to the transport at the time of authentication failure so that retry can be performed.

Signature

void git_remote_set_cred_acquire_cb(git_remote *remote, git_cred_acquire_cb cred_acquire_cb, void *payload);

Parameters

In
remote

the remote to configure

In
cred_acquire_cb

The credentials acquisition callback to use (defaults to NULL)

void *
In
payload

Versions