aboutsummaryrefslogtreecommitdiff
path: root/builtin/name-rev.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2014-02-15 09:01:46 +0700
committerJunio C Hamano <gitster@pobox.com>2014-02-20 14:15:46 -0800
commiteb07894fe036566acccb71420ab79ccb9c9e2d66 (patch)
tree74709f072ea129623d3771433080de01d5010026 /builtin/name-rev.c
parent5f95c9f850b19b368c43ae399cc831b17a26a5ac (diff)
downloadgit-eb07894fe036566acccb71420ab79ccb9c9e2d66.tar.gz
git-eb07894fe036566acccb71420ab79ccb9c9e2d66.tar.xz
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 'builtin/name-rev.c')
-rw-r--r--builtin/name-rev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/name-rev.c b/builtin/name-rev.c
index 0b21d7e5b..c824d4ec5 100644
--- a/builtin/name-rev.c
+++ b/builtin/name-rev.c
@@ -87,7 +87,7 @@ static int subpath_matches(const char *path, const char *filter)
const char *subpath = path;
while (subpath) {
- if (!fnmatch(filter, subpath, 0))
+ if (!wildmatch(filter, subpath, 0, NULL))
return subpath - path;
subpath = strchr(subpath, '/');
if (subpath)