]> git.ipfire.org Git - thirdparty/git.git/commit - http.c
config: parse http.<url>.<variable> using urlmatch
authorKyle J. McKay <mackyle@gmail.com>
Mon, 5 Aug 2013 20:20:36 +0000 (13:20 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Aug 2013 23:02:03 +0000 (16:02 -0700)
commit6a56993b2ec7082521cf14f98ab9fb5a5def4b13
tree8a2c3f3f4d5bd6888b8dfd9d2ff87b1c7014ee93
parent836b6fb5a56338dc28165284875b257ccfd6c224
config: parse http.<url>.<variable> using urlmatch

Use the urlmatch_config_entry() to wrap the underlying
http_options() two-level variable parser in order to set
http.<variable> to the value with the most specific URL in the
configuration.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
19 files changed:
.gitignore
Documentation/config.txt
Makefile
http.c
t/.gitattributes
t/t0110-urlmatch-normalization.sh [new file with mode: 0755]
t/t0110/README [new file with mode: 0644]
t/t0110/url-1 [new file with mode: 0644]
t/t0110/url-10 [new file with mode: 0644]
t/t0110/url-11 [new file with mode: 0644]
t/t0110/url-2 [new file with mode: 0644]
t/t0110/url-3 [new file with mode: 0644]
t/t0110/url-4 [new file with mode: 0644]
t/t0110/url-5 [new file with mode: 0644]
t/t0110/url-6 [new file with mode: 0644]
t/t0110/url-7 [new file with mode: 0644]
t/t0110/url-8 [new file with mode: 0644]
t/t0110/url-9 [new file with mode: 0644]
test-urlmatch-normalization.c [new file with mode: 0644]