src/main/php/CommandLine/Library/GitChangeSetFilter.php
public function filter(
        GitChangeSet $gitChangeSet,
        string $filter = '',
        string $blacklistToken = '',
        string $whitelistToken = ''
    ) {
        $whitelist = [];
        $deDuped = true;

        if ($whitelistToken !== '') {
            $deDuped = false;
            $whitelist = $this->blacklistFactory->findTokenDirectories($whitelistToken);
        }
        $blacklist = $this->blacklistFactory->build($blacklistToken, $deDuped);

        $list = $this->mergeLists($blacklist, $whitelist);
        $files = $gitChangeSet->getFiles();

        $result = $this->iterateOverFiles($filter, $files, $list);

        $gitChangeSet->setFiles($result);
    }
public function filter(
        GitChangeSet $gitChangeSet,
        string $filter = '',
        string $blacklistToken = '',
        string $whitelistToken = ''
    ) {
        $whitelist = [];
        $deDuped = true;

        if ($whitelistToken !== '') {
            $deDuped = false;
            $whitelist = $this->blacklistFactory->findTokenDirectories($whitelistToken);
        }
        $blacklist = $this->blacklistFactory->build($blacklistToken, $deDuped);

        $list = $this->mergeLists($blacklist, $whitelist);
        $files = $gitChangeSet->getFiles();

        $result = $this->iterateOverFiles($filter, $files, $list);

        $gitChangeSet->setFiles($result);
    }
public function filter ( GitChangeSet $ gitChangeSet , string $ filter = '' , string $ blacklistToken = '' , string $ whitelistToken = '' ) { $ whitelist = [ ] ; $ deDuped = true ; if ( $ whitelistToken !== '' ) { $ deDuped = false ; $ whitelist = $ this -> blacklistFactory -> findTokenDirectories ( $ whitelistToken ) ; } $ blacklist = $ this -> blacklistFactory -> build ( $ blacklistToken , $ deDuped ) ; $ list = $ this -> mergeLists ( $ blacklist , $ whitelist ) ; $ files = $ gitChangeSet -> getFiles ( ) ; $ result = $ this -> iterateOverFiles ( $ filter , $ files , $ list ) ; $ gitChangeSet -> setFiles ( $ result ) ; }
Filters file paths by filter and global Blacklist.

@param GitChangeSet $gitChangeSet
@param string       $filter
@param string       $blacklistToken
@param string       $whitelistToken
Filters file paths by filter and global Blacklist .