]> git.ipfire.org Git - thirdparty/git.git/commit - urlmatch.c
urlmatch: use hex2chr() in append_normalized_escapes()
authorRené Scharfe <l.s.r@web.de>
Sat, 8 Jul 2017 08:59:19 +0000 (10:59 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 9 Jul 2017 16:43:01 +0000 (09:43 -0700)
commit50533135622a80b0326c7e93067e136072bef5eb
tree0e6c773ec82340927d3479481523a47a48abd939
parent8c8e978f5719c6a58fb998742207bf907f963143
urlmatch: use hex2chr() in append_normalized_escapes()

Simplify the code by using hex2chr() to convert and check for invalid
characters at the same time instead of doing that sequentially with
one table lookup for each.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
urlmatch.c