diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2014-02-15 09:01:48 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-02-20 14:16:11 -0800 |
commit | 70a8fc999d9f0afbc793b21bbb911ecde4e24367 (patch) | |
tree | 0c5e0af16b03fdcdc71467ca6e495921485f3478 /test-wildmatch.c | |
parent | ff8802283f78e02ccd5d450ccf0ac434bc6258c7 (diff) | |
download | git-70a8fc999d9f0afbc793b21bbb911ecde4e24367.tar.gz |
stop using fnmatch (either native or compat)
Since v1.8.4 (about six months ago) wildmatch is used as default
replacement for fnmatch. We have seen only one fix since so wildmatch
probably has done a good job as fnmatch replacement. This concludes
the fnmatch->wildmatch transition by no longer relying on fnmatch.
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 'test-wildmatch.c')
-rw-r--r-- | test-wildmatch.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/test-wildmatch.c b/test-wildmatch.c index 1564bd57b3..578b164fe6 100644 --- a/test-wildmatch.c +++ b/test-wildmatch.c @@ -1,8 +1,4 @@ -#ifdef USE_WILDMATCH -#undef USE_WILDMATCH /* We need real fnmatch implementation here */ -#endif #include "cache.h" -#include "wildmatch.h" int main(int argc, char **argv) { @@ -20,8 +16,6 @@ int main(int argc, char **argv) return !!wildmatch(argv[3], argv[2], WM_PATHNAME | WM_CASEFOLD, NULL); else if (!strcmp(argv[1], "pathmatch")) return !!wildmatch(argv[3], argv[2], 0, NULL); - else if (!strcmp(argv[1], "fnmatch")) - return !!fnmatch(argv[3], argv[2], FNM_PATHNAME); else return 1; } |