Re: [PATCH v6 1/4] config: add support for http..* settings

2013-07-19 Thread Kyle J. McKay
On Jul 19, 2013, at 13:08, Junio C Hamano wrote: "Kyle J. McKay" writes: @@ -337,7 +472,7 @@ void http_init(struct remote *remote, const char *url, int proactive_auth) http_is_verbose = 0; - git_config(http_options, NULL); + git_config(http_options, (void *)url); Can

Re: [PATCH v6 1/4] config: add support for http..* settings

2013-07-19 Thread Junio C Hamano
"Kyle J. McKay" writes: > +static size_t http_option_max_matched_len[OPT_MAX]; > ... > +static int new_match_is_shorter(size_t matchlen, enum http_option_type opt) > +{ > + /* > + * Compare matchlen to the last matched length of option opt and > + * return true if matchlen is short

[PATCH v6 1/4] config: add support for http..* settings

2013-07-19 Thread Kyle J. McKay
The credentials configuration values already support url-specific configuration items in the form credential..*. This patch adds similar support for http configuration values. The value is considered a match to a url if the value is either an exact match or a prefix of the url which ends on a p