mirror of
https://github.com/git/git.git
synced 2026-03-14 10:53:25 +01:00
The functionality for helpers is already there; we just need to give the users a way to turn it on. The new functionality is enabled whenever a caller of the credentials API passes a NULL method list. This will enable it for all current callers (i.e., the http code). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
23 lines
594 B
C
23 lines
594 B
C
#ifndef CREDENTIAL_H
|
|
#define CREDENTIAL_H
|
|
|
|
struct credential {
|
|
char *description;
|
|
char *username;
|
|
char *password;
|
|
char *unique;
|
|
};
|
|
|
|
struct string_list;
|
|
|
|
int credential_getpass(struct credential *);
|
|
void credential_from_config(struct credential *);
|
|
|
|
int credential_fill_gently(struct credential *, const struct string_list *methods);
|
|
void credential_fill(struct credential *, const struct string_list *methods);
|
|
void credential_reject(struct credential *, const struct string_list *methods);
|
|
|
|
int git_default_credential_config(const char *var, const char *value);
|
|
|
|
#endif /* CREDENTIAL_H */
|