X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=dir.c;h=109e05b01346ac13296dfbcfa2355a43d97731cd;hb=ea3594e04184475226109a21e71c539ff5f139fd;hp=9501476ecdb05fb576d8acfc6a1dac02df86c9b7;hpb=4c4d3ac746922886ba75d0aa1114c6ad96788c1a;p=git.git diff --git a/dir.c b/dir.c index 9501476ec..109e05b01 100644 --- a/dir.c +++ b/dir.c @@ -54,7 +54,7 @@ int common_prefix(const char **pathspec) static inline int special_char(unsigned char c1) { - return !c1 || c1 == '*' || c1 == '[' || c1 == '?'; + return !c1 || c1 == '*' || c1 == '[' || c1 == '?' || c1 == '\\'; } /* @@ -389,7 +389,7 @@ static struct dir_entry *dir_entry_new(const char *pathname, int len) struct dir_entry *dir_add_name(struct dir_struct *dir, const char *pathname, int len) { - if (cache_name_exists(pathname, len)) + if (cache_name_exists(pathname, len, ignore_case)) return NULL; ALLOC_GROW(dir->entries, dir->nr+1, dir->alloc);