Code

contrib/completion: "local var=()" is misinterpreted as func-decl by zsh
[git.git] / credential.h
index 2ea7d495d6bbcd4ad5496dbce759c45a880175ba..96ea41bd1c99c05d63cb965a5fc57fcd838f3fdb 100644 (file)
@@ -5,7 +5,9 @@
 
 struct credential {
        struct string_list helpers;
-       unsigned approved:1;
+       unsigned approved:1,
+                configured:1,
+                use_http_path:1;
 
        char *username;
        char *password;
@@ -24,5 +26,8 @@ void credential_approve(struct credential *);
 void credential_reject(struct credential *);
 
 int credential_read(struct credential *, FILE *);
+void credential_from_url(struct credential *, const char *url);
+int credential_match(const struct credential *have,
+                    const struct credential *want);
 
 #endif /* CREDENTIAL_H */