Makefile: promote wildmatch to be the default fnmatch implementation

This makes git use wildmatch by default for all fnmatch() calls. Users who want to use system fnmatch (or compat fnmatch) need to set NO_WILDMATCH flag. wildmatch is a drop-in fnmatch replacement with more features. Using wildmatch gives us a consistent behavior across platforms. The tentative plan is make it default with an opt-out for about 2 cycles, then remove NO_WILDMATCH and compat/fnmatch. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nguyễn Thái Ngọc Duy committed May 30, 2013 at 08:34 UTC 4917e1edabd6989e229e1a751b4062708cfd6f8e
1 file changed +2 -2
Makefile
+2 -2
@@ -106,7 +106,7 @@ all::
106 # Define NO_FNMATCH_CASEFOLD if your fnmatch function doesn't have the
107 # FNM_CASEFOLD GNU extension.
108 #
109 -# Define USE_WILDMATCH if you want to use Git's wildmatch
109 +# Define NO_WILDMATCH if you do not want to use Git's wildmatch
110 # implementation as fnmatch
111 #
112 # Define NO_GECOS_IN_PWENT if you don't have pw_gecos in struct passwd
@@ -1261,7 +1261,7 @@ ifdef NO_FNMATCH_CASEFOLD
1261 COMPAT_OBJS += compat/fnmatch/fnmatch.o
1262 endif
1263 endif
1264 -ifdef USE_WILDMATCH
1264 +ifndef NO_WILDMATCH
1265 COMPAT_CFLAGS += -DUSE_WILDMATCH
1266 endif
1267 ifdef NO_SETENV