@Override
    public boolean include(final TreeWalk walker) {
        if (walker.isSubtree()) {
            return true;
        }
        val pathString = walker.getPathString();
        return pattern.matcher(pathString).find();
    }
This is {@link PathRegexPatternTreeFilter}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-git-core/src/main/java/org/apereo/cas/git/PathRegexPatternTreeFilter.java