diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-03-14 14:25:31 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-03-14 14:25:31 -0700 |
commit | 650c90a18506ce05e2be349d83fe1cef3dc7f8cb (patch) | |
tree | 6852107d8a2a0d30ea2cfac400fc33bce72fe7bc /revision.c | |
parent | 3a66e1bf9c45ac16169c3b6d4a096d5af3ba6929 (diff) | |
parent | 2c0a1bd616f6d81905c4e8b98e8c9f2d7324924c (diff) | |
download | git-650c90a18506ce05e2be349d83fe1cef3dc7f8cb.tar.gz |
Merge branch 'nd/no-more-fnmatch'
We started using wildmatch() in place of fnmatch(3); complete the
process and stop using fnmatch(3).
* nd/no-more-fnmatch:
actually remove compat fnmatch source code
stop using fnmatch (either native or compat)
Revert "test-wildmatch: add "perf" command to compare wildmatch and fnmatch"
use wildmatch() directly without fnmatch() wrapper
Diffstat (limited to 'revision.c')
-rw-r--r-- | revision.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/revision.c b/revision.c index bd027bc015..78b5c3ac0b 100644 --- a/revision.c +++ b/revision.c @@ -1186,7 +1186,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; |