diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-01-21 16:51:03 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-01-21 16:51:03 -0800 |
commit | d9fde065bd808fbbad3b53e10e160c8f8193b577 (patch) | |
tree | aeae85b30e694dd7d23a7eb120a499055f147038 /dir.c | |
parent | Merge branch 'sb/hook-cleanup' (diff) | |
parent | Add is_regex_special() (diff) | |
download | tgif-d9fde065bd808fbbad3b53e10e160c8f8193b577.tar.xz |
Merge branch 'rs/ctype'
* rs/ctype:
Add is_regex_special()
Change NUL char handling of isspecial()
Reformat ctype.c
Add ctype test
Conflicts:
Makefile
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -75,7 +75,7 @@ static int match_one(const char *match, const char *name, int namelen) for (;;) { unsigned char c1 = *match; unsigned char c2 = *name; - if (isspecial(c1)) + if (c1 == '\0' || is_glob_special(c1)) break; if (c1 != c2) return 0; @@ -678,7 +678,7 @@ static int simple_length(const char *match) for (;;) { unsigned char c = *match++; len++; - if (isspecial(c)) + if (c == '\0' || is_glob_special(c)) return len; } } |