TQ\Git\Repository\Repository::showCommit PHP Method

showCommit() public method

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