/** * Returns the matrix representing the differences between two revisions of he same file. * * @param mixed $first_revision * @param mixed $last_revision * @param DiffParser $diffParser * @param GitDiffCommand $gitDiffCommand * @return DiffParser */ public function getDiffMatrixFromRevision($first_revision, $last_revision, DiffParser $diffParser, GitDiffCommand $gitDiffCommand) { $gitDiffCommand->addRevisions($first_revision, $last_revision); $this->createDiffFile($gitDiffCommand); $diffParser->parse(file($this->gitLogFileHandler->getFilePath())); return $diffParser; }
/** * Returns the matrix representing the differences between two revisions of he same file. * * @param mixed $first_revision * @param mixed $last_revision * @param DiffParser $diffParser * @param SvnDiffCommand $svnDiffCommand * @return DiffParser */ public function getDiffMatrixFromRevision($first_revision, $last_revision, DiffParser $diffParser, SvnDiffCommand $svnDiffCommand) { $svnDiffCommand->setOptionRevision($first_revision, $last_revision); $this->createDiffFile($svnDiffCommand); $diffParser->parse(file($this->proxy->getFilePath())); return $diffParser; }