Files
git/credential.h
Jeff King 00b1daa2c1 allow the user to configure credential helpers
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>
2011-08-03 15:25:12 -07:00

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 */