Fix escaping of glob special characters in pathspecs
commitea335b56d44a92b9b8be40b1465d7df65a4f736b
authorKevin Ballard <kevin@sb.org>
Wed, 13 Aug 2008 22:34:34 +0000 (13 15:34 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 Aug 2008 00:11:03 +0000 (13 17:11 -0700)
tree8fb43988263fce307dc046d5b4c1cb7d078d0a63
parent9612e74342cfd38c0b83230a2c847cd070599a5a
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>
dir.c
t/t3700-add.sh