FIXME: hotpatch for compatibility with latest hg
[git] / credential.h
1 #ifndef CREDENTIAL_H
2 #define CREDENTIAL_H
3
4 struct credential {
5         char *description;
6         char *username;
7         char *password;
8         char *unique;
9 };
10
11 struct string_list;
12
13 int credential_getpass(struct credential *);
14 void credential_from_config(struct credential *);
15
16 int credential_fill_gently(struct credential *, const struct string_list *methods);
17 void credential_fill(struct credential *, const struct string_list *methods);
18 void credential_reject(struct credential *, const struct string_list *methods);
19
20 int git_default_credential_config(const char *var, const char *value);
21
22 #endif /* CREDENTIAL_H */