DNProject::getCommitSubjectMessage PHP Method

getCommitSubjectMessage() public method

get the commit "subject", getCommitMessage get the full message
public getCommitSubjectMessage ( Gitonomy\Git\Commit $commit ) : string
$commit Gitonomy\Git\Commit
return string
    public function getCommitSubjectMessage(\Gitonomy\Git\Commit $commit)
    {
        $cachekey = $this->ID . '_message_subject' . $commit->getRevision();
        $cache = self::get_git_cache();
        if (!($result = $cache->load($cachekey))) {
            $result = $commit->getSubjectMessage();
            $cache->save($result, $cachekey, ['gitonomy', 'message', 'project_' . $this->ID]);
        }
        return $result;
    }