Re: [PATCH v2] config: add support for http..* settings

2013-07-11 Thread Kyle J. McKay
On Jul 11, 2013, at 12:26, Junio C Hamano wrote: "Kyle J. McKay" writes: +static int http_option_maxlen[opt_max]; I understand that this is to keep track of the length of the longest one that has matched (hence the current candidate). The name "maxlen" captures the "longest" part, but "has

Re: [PATCH v2] config: add support for http..* settings

2013-07-11 Thread Junio C Hamano
"Kyle J. McKay" writes: > Longer matches take precedence over shorter matches with > environment variable settings taking precedence over all. OK. > diff --git a/Documentation/config.txt b/Documentation/config.txt > index b4d4887..3731a3a 100644 > --- a/Documentation/config.txt > +++ b/Document

[PATCH v2] config: add support for http..* settings

2013-07-11 Thread Kyle J. McKay
From: "Kyle J. McKay" 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 path component boundary ('/'). So "https://example.com/test"; will match "https://example.com/test"; and "https://example.com/test/too"; but not "https://