pathspec: apply "*.c" optimization from exclude
[gitweb.git] / cache.h
diff --git a/cache.h b/cache.h
index bf031f133c939ee48fa2e93a0ae3433342453c23..babf9e54c902d7a70a326815d6c73d7900cdc63c 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -473,6 +473,8 @@ extern int index_name_is_other(const struct index_state *, const char *, int);
 extern int ie_match_stat(const struct index_state *, struct cache_entry *, struct stat *, unsigned int);
 extern int ie_modified(const struct index_state *, struct cache_entry *, struct stat *, unsigned int);
 
+#define PATHSPEC_ONESTAR 1     /* the pathspec pattern sastisfies GFNM_ONESTAR */
+
 struct pathspec {
        const char **raw; /* get_pathspec() result, not freed by free_pathspec() */
        int nr;
@@ -483,6 +485,7 @@ struct pathspec {
                const char *match;
                int len;
                int nowildcard_len;
+               int flags;
        } *items;
 };