summaryrefslogtreecommitdiff
path: root/builtin/replace.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2014-02-15 02:01:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-02-20 22:15:46 (GMT)
commiteb07894fe036566acccb71420ab79ccb9c9e2d66 (patch)
tree74709f072ea129623d3771433080de01d5010026 /builtin/replace.c
parent5f95c9f850b19b368c43ae399cc831b17a26a5ac (diff)
downloadgit-eb07894fe036566acccb71420ab79ccb9c9e2d66.zip
git-eb07894fe036566acccb71420ab79ccb9c9e2d66.tar.gz
git-eb07894fe036566acccb71420ab79ccb9c9e2d66.tar.bz2
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/replace.c')
-rw-r--r--builtin/replace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/replace.c b/builtin/replace.c
index 2336325..80b152a 100644
--- a/builtin/replace.c
+++ b/builtin/replace.c
@@ -36,7 +36,7 @@ static int show_reference(const char *refname, const unsigned char *sha1,
{
struct show_data *data = cb_data;
- if (!fnmatch(data->pattern, refname, 0)) {
+ if (!wildmatch(data->pattern, refname, 0, NULL)) {
if (data->format == REPLACE_FORMAT_SHORT)
printf("%s\n", refname);
else if (data->format == REPLACE_FORMAT_MEDIUM)