From: Junio C Hamano Date: Sun, 7 Apr 2013 15:45:03 +0000 (-0700) Subject: Merge branch 'jc/directory-attrs-regression-fix' into maint-1.8.1 X-Git-Tag: v1.8.1.6~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/4bbb830a35c5134b612a990f04ee16678ec0c674 Merge branch 'jc/directory-attrs-regression-fix' into maint-1.8.1 A pattern "dir" (without trailing slash) in the attributes file stopped matching a directory "dir" by mistake with an earlier change that wanted to allow pattern "dir/" to also match. * jc/directory-attrs-regression-fix: t: check that a pattern without trailing slash matches a directory dir.c::match_pathname(): pay attention to the length of string parameters dir.c::match_pathname(): adjust patternlen when shifting pattern dir.c::match_basename(): pay attention to the length of string parameters attr.c::path_matches(): special case paths that end with a slash attr.c::path_matches(): the basename is part of the pathname --- 4bbb830a35c5134b612a990f04ee16678ec0c674