summaryrefslogtreecommitdiffstats
path: root/revision.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2014-02-15 03:01:46 +0100
committerJunio C Hamano <gitster@pobox.com>2014-02-20 23:15:46 +0100
commiteb07894fe036566acccb71420ab79ccb9c9e2d66 (patch)
tree74709f072ea129623d3771433080de01d5010026 /revision.c
parentGit 1.9.0 (diff)
downloadgit-eb07894fe036566acccb71420ab79ccb9c9e2d66.tar.xz
git-eb07894fe036566acccb71420ab79ccb9c9e2d66.zip
use wildmatch() directly without fnmatch() wrapper
Make it clear that we don't use fnmatch() anymore. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'revision.c')
-rw-r--r--revision.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/revision.c b/revision.c
index a0df72f32c..6addff1b5f 100644
--- a/revision.c
+++ b/revision.c
@@ -1191,7 +1191,7 @@ int ref_excluded(struct string_list *ref_excludes, const char *path)
if (!ref_excludes)
return 0;
for_each_string_list_item(item, ref_excludes) {
- if (!fnmatch(item->string, path, 0))
+ if (!wildmatch(item->string, path, 0, NULL))
return 1;
}
return 0;