pathspec: apply "*.c" optimization from exclude
[gitweb.git] / dir.h
diff --git a/dir.h b/dir.h
index 0e8ae84628c2983c2bad9d636c5dec208d24c17e..ab5af42b2eedcf7045abd0b6029e84ba804f6057 100644 (file)
--- a/dir.h
+++ b/dir.h
@@ -143,6 +143,7 @@ extern int fnmatch_icase(const char *pattern, const char *string, int flags);
  * The prefix part of pattern must not contains wildcards.
  */
 #define GFNM_PATHNAME 1                /* similar to FNM_PATHNAME */
+#define GFNM_ONESTAR  2                /* there is only _one_ wildcard, a star */
 
 extern int git_fnmatch(const char *pattern, const char *string,
                       int flags, int prefix);