remote: simplify match_name_with_pattern() using strbuf
commit07bfa575c1ce741d0e33580c336596d3407129b6
authorRené Scharfe <l.s.r@web.de>
Sun, 21 Sep 2014 08:23:37 +0000 (21 10:23 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Sep 2014 19:40:27 +0000 (22 12:40 -0700)
tree54e569556bc3be3dde3e0aeaa89d74d3a378c06b
parent97b8860c071898d9e162678ea1035a8ced2f8b1f
remote: simplify match_name_with_pattern() using strbuf

Make the code simpler and shorter by avoiding repetitive use of
string length variables and leaving memory allocation to strbuf
functions.

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