libgit2

git_credential_get_username

Version:

Return the username associated with a credential object.

Signature

const char *git_credential_get_username(git_credential *cred);

Parameters

In
cred

object to check

Returns

const char *

the credential username, or NULL if not applicable

Versions