git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Aleksandr Makarov <aleksandr.o.makarov@gmail.com>
To: git@vger.kernel.org
Subject: [PATCH] match_name_as_path: Pass WM_CASEFOLD to wildmatch
Date: Thu, 7 Sep 2017 16:51:36 +0300	[thread overview]
Message-ID: <79c946a2-532e-1c9b-7bf2-1f1ccbff721e@gmail.com> (raw)

---
  ref-filter.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ref-filter.c b/ref-filter.c
index bc591f4..3746628 100644
--- a/ref-filter.c
+++ b/ref-filter.c
@@ -1663,7 +1663,7 @@ static int match_name_as_path(const struct ref_filter *filter, const char *refna
  		     refname[plen] == '/' ||
  		     p[plen-1] == '/'))
  			return 1;
-		if (!wildmatch(p, refname, WM_PATHNAME))
+		if (!wildmatch(p, refname, flags))
  			return 1;
  	}
  	return 0;
-- 
2.7.4


             reply	other threads:[~2017-09-07 13:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-07 13:51 Aleksandr Makarov [this message]
2017-09-07 14:50 ` [PATCH] match_name_as_path: Pass WM_CASEFOLD to wildmatch Jeff King

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=79c946a2-532e-1c9b-7bf2-1f1ccbff721e@gmail.com \
    --to=aleksandr.o.makarov@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).