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

showCommit() 공개 메소드

Returns a string containing information about the given commit
public showCommit ( string $hash ) : string
$hash string The commit ref
리턴 string
    public function showCommit($hash)
    {
        /** @var $result CallResult */
        $result = $this->getSvn()->{'log'}($this->getRepositoryPath(), array('-v', '-r' => $hash));
        $result->assertSuccess(sprintf('Cannot retrieve commit "%s" from "%s"', $hash, $this->getRepositoryPath()));
        return $result->getStdOut();
    }