public function compare(string $from, string $to): array
    {
        $compare = (new Compare($this->repo->getRoot()))->revisions($from, $to)
                                                        ->ignoreWhitespacesAtEndOfLine();

        $result = $this->runner->run($compare, new Compare\FullDiffList());

        return $result->getFormattedOutput();
    }
public function compare(string $from, string $to): array
    {
        $compare = (new Compare($this->repo->getRoot()))->revisions($from, $to)
                                                        ->ignoreWhitespacesAtEndOfLine();

        $result = $this->runner->run($compare, new Compare\FullDiffList());

        return $result->getFormattedOutput();
    }
public function compare ( string $ from , string $ to ) : array { $ compare = ( new Compare ( $ this -> repo -> getRoot ( ) ) ) -> revisions ( $ from , $ to ) -> ignoreWhitespacesAtEndOfLine ( ) ; $ result = $ this -> runner -> run ( $ compare , new Compare \ FullDiffList ( ) ) ; return $ result -> getFormattedOutput ( ) ; }
Returns a list of files and their changes.

@param  string $from
@param  string $to
@return \SebastianFeldmann\Git\Diff\File[]
Returns a list of files and their changes .