author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | |
Sat, 17 Jan 2009 15:50:34 +0000 (16:50 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 18 Jan 2009 02:30:37 +0000 (18:30 -0800) | ||
commit | 8cc32992624ed4140fb136d98675f0f19b20ba09 | |
tree | 4b6b3164c5fd4dce658f5b08c86cc337853d7373 | tree | snapshot |
parent | c841aa8b903200f5d7830c7c4ab8d62b5ef44c5c | commit | diff |
Change NUL char handling of isspecial()
Replace isspecial() by the new macro is_glob_special(), which is more,
well, specialized. The former included the NUL char in its character
class, while the letter only included characters that are special to
file name globbing.
The new name contains underscores because they enhance readability
considerably now that it's made up of three words. Renaming the
function is necessary to document its changed scope.
The call sites of isspecial() are updated to check explicitly for NUL.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Replace isspecial() by the new macro is_glob_special(), which is more,
well, specialized. The former included the NUL char in its character
class, while the letter only included characters that are special to
file name globbing.
The new name contains underscores because they enhance readability
considerably now that it's made up of three words. Renaming the
function is necessary to document its changed scope.
The call sites of isspecial() are updated to check explicitly for NUL.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ctype.c | diff | blob | history | |
dir.c | diff | blob | history | |
git-compat-util.h | diff | blob | history | |
grep.c | diff | blob | history | |
test-ctype.c | diff | blob | history |