TQ\Svn\Repository\Repository::showFile PHP 메소드

showFile() 공개 메소드

Returns the content of a file at a given version
public showFile ( string $file, string $ref = 'HEAD' ) : string
$file string The path to the file
$ref string The version ref
리턴 string
    public function showFile($file, $ref = 'HEAD')
    {
        /** @var $result CallResult */
        $result = $this->getSvn()->{'cat'}($this->getRepositoryPath(), array('--revision' => $ref, $file));
        $result->assertSuccess(sprintf('Cannot show "%s" at "%s" from "%s"', $file, $ref, $this->getRepositoryPath()));
        return $result->getStdOut();
    }