@@ 1162-1170 (lines=9) @@ | ||
1159 | * @param \Gitonomy\Git\Commit $commit |
|
1160 | * @return string |
|
1161 | */ |
|
1162 | public function getCommitMessage(\Gitonomy\Git\Commit $commit) { |
|
1163 | $cachekey = $this->ID . '_message_' . $commit->getRevision(); |
|
1164 | $cache = self::get_git_cache(); |
|
1165 | if (!($result = $cache->load($cachekey))) { |
|
1166 | $result = $commit->getMessage(); |
|
1167 | $cache->save($result, $cachekey, ['gitonomy', 'message', 'project_' . $this->ID]); |
|
1168 | } |
|
1169 | return $result; |
|
1170 | } |
|
1171 | ||
1172 | /** |
|
1173 | * get the commit "subject", getCommitMessage get the full message |
|
@@ 1178-1186 (lines=9) @@ | ||
1175 | * @param \Gitonomy\Git\Commit $commit |
|
1176 | * @return string |
|
1177 | */ |
|
1178 | public function getCommitSubjectMessage(\Gitonomy\Git\Commit $commit) { |
|
1179 | $cachekey = $this->ID . '_message_subject' . $commit->getRevision(); |
|
1180 | $cache = self::get_git_cache(); |
|
1181 | if (!($result = $cache->load($cachekey))) { |
|
1182 | $result = $commit->getSubjectMessage(); |
|
1183 | $cache->save($result, $cachekey, ['gitonomy', 'message', 'project_' . $this->ID]); |
|
1184 | } |
|
1185 | return $result; |
|
1186 | } |
|
1187 | ||
1188 | /** |
|
1189 | * @param \Gitonomy\Git\Commit $commit |