aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.ui/resources/org/eclipse
diff options
context:
space:
mode:
authorAndrey Loskutov <loskutov@gmx.de>2014-12-14 18:07:59 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2014-12-28 02:03:08 +0100
commitc053900c5bc89d2b55c563e04bc1edab53cdc143 (patch)
tree28422ff3242ad09507b3aec5b94a01e7bb92fc1d /org.eclipse.jgit.ui/resources/org/eclipse
parent02b0660b8b749b078fc58f135d14206ebad98ad9 (diff)
downloadjgit-c053900c5bc89d2b55c563e04bc1edab53cdc143.tar.gz
jgit-c053900c5bc89d2b55c563e04bc1edab53cdc143.zip
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>
Diffstat (limited to 'org.eclipse.jgit.ui/resources/org/eclipse')
0 files changed, 0 insertions, 0 deletions