Bart\Git\Commit::gitShowFormatOutput PHP Method

gitShowFormatOutput() private method

The output from git show with a specific format (--format={$format} flag) and suppressed diff output (-s flag)
private gitShowFormatOutput ( string $format, string $exceptionMsg ) : string
$format string One of the formats specified in the "PRETTY FORMAT" section in the `git-show` man page (https://git-scm.com/docs/git-show)
$exceptionMsg string The exception message to output in case the command fails
return string The output (as a string) of the `git show` command
    private function gitShowFormatOutput($format, $exceptionMsg)
    {
        $result = $this->gitRoot->getCommandResult("show -s --no-color --format='{$format}' {$this->revision}");
        if (!$result->wasOk()) {
            throw new GitException("{$exceptionMsg} at revision {$this}");
        }
        return $result->getOutput(true);
    }