src/main/php/CommandLine/FileFinders/DiffCheckableFileFinder.php
private function findFilesInDiffToTarget(string $targetBranch) : GitChangeSet
    {
        $mergeBase = $this->processRunner->runAsProcess('git', 'merge-base', 'HEAD', $targetBranch);

        $rawDiffUnfilteredString = $this->processRunner->runAsProcess(
            'git',
            'diff',
            '--name-only',
            '--diff-filter=d',
            $mergeBase
        );

        $rawDiffUnfiltered = explode("\n", trim($rawDiffUnfilteredString));

        $result = $this->gitChangeSetFactory->build($rawDiffUnfiltered, $mergeBase);

        return $result;
    }
private function findFilesInDiffToTarget(string $targetBranch) : GitChangeSet
    {
        $mergeBase = $this->processRunner->runAsProcess('git', 'merge-base', 'HEAD', $targetBranch);

        $rawDiffUnfilteredString = $this->processRunner->runAsProcess(
            'git',
            'diff',
            '--name-only',
            '--diff-filter=d',
            $mergeBase
        );

        $rawDiffUnfiltered = explode("\n", trim($rawDiffUnfilteredString));

        $result = $this->gitChangeSetFactory->build($rawDiffUnfiltered, $mergeBase);

        return $result;
    }
private function findFilesInDiffToTarget ( string $ targetBranch ) : GitChangeSet { $ mergeBase = $ this -> processRunner -> runAsProcess ( 'git' , 'merge-base' , 'HEAD' , $ targetBranch ) ; $ rawDiffUnfilteredString = $ this -> processRunner -> runAsProcess ( 'git' , 'diff' , '--name-only' , '--diff-filter=d' , $ mergeBase ) ; $ rawDiffUnfiltered = explode ( "\n" , trim ( $ rawDiffUnfilteredString ) ) ; $ result = $ this -> gitChangeSetFactory -> build ( $ rawDiffUnfiltered , $ mergeBase ) ; return $ result ; }
This method finds all files in diff to target branch.

@param string $targetBranch

@return GitChangeSet
This method finds all files in diff to target branch .