diff options
Diffstat (limited to 'include/git2/cred_helpers.h')
-rw-r--r-- | include/git2/cred_helpers.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/git2/cred_helpers.h b/include/git2/cred_helpers.h index 7c213c8dd..e3eb91d6c 100644 --- a/include/git2/cred_helpers.h +++ b/include/git2/cred_helpers.h @@ -34,6 +34,8 @@ typedef struct git_cred_userpass_payload { * * @param cred The newly created credential object. * @param url The resource for which we are demanding a credential. + * @param username_from_url The username that was embedded in a "user@host" + * remote url, or NULL if not included. * @param allowed_types A bitmask stating which cred types are OK to return. * @param payload The payload provided when specifying this callback. (This is * interpreted as a `git_cred_userpass_payload*`.) @@ -41,6 +43,7 @@ typedef struct git_cred_userpass_payload { GIT_EXTERN(int) git_cred_userpass( git_cred **cred, const char *url, + const char *user_from_url, unsigned int allowed_types, void *payload); |