X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=dir.c;h=08281d2ef74ea7790913e71f08d00299a1825765;hb=1c2ef66f63e60539044d1e0cd8fbfbccd2cefc2e;hp=9789bd204ef33c0623e6576c5afd533786fcd406;hpb=014d298b1d6c7a493e7a4339e8327ae1c8e1d8d9;p=git.git diff --git a/dir.c b/dir.c index 9789bd204..08281d2ef 100644 --- a/dir.c +++ b/dir.c @@ -230,7 +230,7 @@ static int match_pathspec_item(const struct pathspec_item *item, int prefix, return MATCHED_RECURSIVELY; } - if (item->has_wildcard && !fnmatch(match, name, 0)) + if (item->use_wildcard && !fnmatch(match, name, 0)) return MATCHED_FNMATCH; return 0; @@ -1274,8 +1274,8 @@ int init_pathspec(struct pathspec *pathspec, const char **paths) item->match = path; item->len = strlen(path); - item->has_wildcard = !no_wildcard(path); - if (item->has_wildcard) + item->use_wildcard = !no_wildcard(path); + if (item->use_wildcard) pathspec->has_wildcard = 1; }