libgit2

git_cred_has_username

Version:

Check whether a credential object contains username information.

Signature

int git_cred_has_username(git_cred *cred);

Parameters

In
cred

object to check

Returns

int

1 if the credential object has non-NULL username, 0 otherwise

Versions