Andrey Loskutov
c053900c5b
PathMatcher should respect "assumeDirectory" flag
The path matcher should not fail if the rule ends with trailing slash, target pattern does not ends with the slash and the "assumeDirectory" flag is set. E.g. */bin/ should also match a/bin if this pattern is threated as directory by WorkingTreeIterator (FileMode.TREE). The old code/tests have never tested directory rules with patterns *without* trailing slashes but with the "assumeDirectory" flag set. Unfortunately this is exactly what WorkingTreeIterator does... The tests are changed to test *both* cases now (with trailing slash and without) if the target pattern has trailing slash (represents directory). Bug: 454672 Change-Id: I621c1644d9e94df3eb9f6f09c6de0fe51f0950a4 Also-by: Markus Duft <markus.duft@salomon.at> Signed-off-by: Andrey Loskutov <loskutov@gmx.de> |
9 jaren geleden | |
---|---|---|
.. | ||
internal | PathMatcher should respect "assumeDirectory" flag | 9 jaren geleden |
FastIgnoreRule.java | Reimplementation of ignore rule parser | 9 jaren geleden |
IgnoreNode.java | Consider parent rules if ignore rule is negated | 9 jaren geleden |
IgnoreRule.java | Reimplementation of ignore rule parser | 9 jaren geleden |
package-info.java | Add Javadoc description for packages | 11 jaren geleden |