public function getCommitsBetween(string $from, string $to) : array
    {
        $cmd = (new Commits($this->repo->getRoot()))->byRevision($from, $to)
                                                    ->prettyFormat(Commits\Jsonized::FORMAT);

        $result = $this->runner->run($cmd, new Commits\Jsonized());
        return $result->getFormattedOutput();
    }
public function getCommitsBetween(string $from, string $to) : array
    {
        $cmd = (new Commits($this->repo->getRoot()))->byRevision($from, $to)
                                                    ->prettyFormat(Commits\Jsonized::FORMAT);

        $result = $this->runner->run($cmd, new Commits\Jsonized());
        return $result->getFormattedOutput();
    }
public function getCommitsBetween ( string $ from , string $ to ) : array { $ cmd = ( new Commits ( $ this -> repo -> getRoot ( ) ) ) -> byRevision ( $ from , $ to ) -> prettyFormat ( Commits \ Jsonized :: FORMAT ) ; $ result = $ this -> runner -> run ( $ cmd , new Commits \ Jsonized ( ) ) ; return $ result -> getFormattedOutput ( ) ; }
Get list of commits between to given revisions.

@param  string $from
@param  string $to
@return array
Get list of commits between to given revisions .