submodule add: fix handling of --reference=<repo> option
[gitweb.git] / credential.h
index e5042723a87543714846961667c3bb49b2c25827..0c3e85e8e4232ad9298372efebf7696a77dc94b1 100644 (file)
@@ -6,7 +6,8 @@
 struct credential {
        struct string_list helpers;
        unsigned approved:1,
-                configured:1;
+                configured:1,
+                use_http_path:1;
 
        char *username;
        char *password;
@@ -25,6 +26,7 @@ void credential_approve(struct credential *);
 void credential_reject(struct credential *);
 
 int credential_read(struct credential *, FILE *);
+void credential_write(const struct credential *, FILE *);
 void credential_from_url(struct credential *, const char *url);
 int credential_match(const struct credential *have,
                     const struct credential *want);