libgit2

git_cred_username_new

Version:

Create a credential to specify a username.

This is used with ssh authentication to query for the username if none is specified in the url.

Signature

int git_cred_username_new(git_cred **cred, const char *username);

Parameters

In
cred
const char *
In
username

Returns

int

Versions