From eb07894fe036566acccb71420ab79ccb9c9e2d66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Th=C3=A1i=20Ng=E1=BB=8Dc=20Duy?= Date: Sat, 15 Feb 2014 09:01:46 +0700 Subject: use wildmatch() directly without fnmatch() wrapper MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make it clear that we don't use fnmatch() anymore. Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano --- diffcore-order.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'diffcore-order.c') diff --git a/diffcore-order.c b/diffcore-order.c index fe7f1f4647..53ea4d14c2 100644 --- a/diffcore-order.c +++ b/diffcore-order.c @@ -73,7 +73,7 @@ static int match_order(const char *path) strbuf_addstr(&p, path); while (p.buf[0]) { char *cp; - if (!fnmatch(order[i], p.buf, 0)) + if (!wildmatch(order[i], p.buf, 0, NULL)) return i; cp = strrchr(p.buf, '/'); if (!cp) -- cgit v1.2.3