|
@@ 1125-1133 (lines=9) @@
|
| 1122 |
|
* @param \Gitonomy\Git\Commit $commit |
| 1123 |
|
* @return string |
| 1124 |
|
*/ |
| 1125 |
|
public function getCommitMessage(\Gitonomy\Git\Commit $commit) { |
| 1126 |
|
$cachekey = $this->ID . '_message_' . $commit->getRevision(); |
| 1127 |
|
$cache = self::get_git_cache(); |
| 1128 |
|
if (!($result = $cache->load($cachekey))) { |
| 1129 |
|
$result = $commit->getMessage(); |
| 1130 |
|
$cache->save($result, $cachekey, ['gitonomy', 'message', 'project_' . $this->ID]); |
| 1131 |
|
} |
| 1132 |
|
return $result; |
| 1133 |
|
} |
| 1134 |
|
|
| 1135 |
|
/** |
| 1136 |
|
* get the commit "subject", getCommitMessage get the full message |
|
@@ 1141-1149 (lines=9) @@
|
| 1138 |
|
* @param \Gitonomy\Git\Commit $commit |
| 1139 |
|
* @return string |
| 1140 |
|
*/ |
| 1141 |
|
public function getCommitSubjectMessage(\Gitonomy\Git\Commit $commit) { |
| 1142 |
|
$cachekey = $this->ID . '_message_subject' . $commit->getRevision(); |
| 1143 |
|
$cache = self::get_git_cache(); |
| 1144 |
|
if (!($result = $cache->load($cachekey))) { |
| 1145 |
|
$result = $commit->getSubjectMessage(); |
| 1146 |
|
$cache->save($result, $cachekey, ['gitonomy', 'message', 'project_' . $this->ID]); |
| 1147 |
|
} |
| 1148 |
|
return $result; |
| 1149 |
|
} |
| 1150 |
|
|
| 1151 |
|
/** |
| 1152 |
|
* @param \Gitonomy\Git\Commit $commit |