commit | ea335b56d44a92b9b8be40b1465d7df65a4f736b | [log] [tgz] |
---|---|---|
author | Kevin Ballard <kevin@sb.org> | Wed Aug 13 15:34:34 2008 -0700 |
committer | Junio C Hamano <gitster@pobox.com> | Wed Aug 13 17:11:03 2008 -0700 |
tree | 8fb43988263fce307dc046d5b4c1cb7d078d0a63 | |
parent | 9612e74342cfd38c0b83230a2c847cd070599a5a [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>