author | Kevin Ballard <kevin@sb.org> | |
Wed, 13 Aug 2008 22:34:34 +0000 (15:34 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 14 Aug 2008 00:11:03 +0000 (17:11 -0700) | ||
commit | ea335b56d44a92b9b8be40b1465d7df65a4f736b | |
tree | 8fb43988263fce307dc046d5b4c1cb7d078d0a63 | tree | snapshot |
parent | 9612e74342cfd38c0b83230a2c847cd070599a5a | commit | diff |
Fix escaping of glob special characters in pathspecs
match_one implements an optimized pathspec match where it only uses
fnmatch if it detects glob special characters in the pattern. Unfortunately
it didn't treat \ as a special character, so attempts to escape a glob
special character would fail even though fnmatch() supports it.
Signed-off-by: Kevin Ballard <kevin@sb.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
match_one implements an optimized pathspec match where it only uses
fnmatch if it detects glob special characters in the pattern. Unfortunately
it didn't treat \ as a special character, so attempts to escape a glob
special character would fail even though fnmatch() supports it.
Signed-off-by: Kevin Ballard <kevin@sb.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir.c | diff | blob | history | |
t/t3700-add.sh | diff | blob | history |