/**
* Get the version to use for the compare url.
*
* For dev versions, it returns the commit short hash in full pretty version.
*
* @param Version $version
*
* @return string
*/
protected function getCompareVersion(Version $version)
{
if ($version->isDev()) {
return substr($version->getFullPretty(), strlen($version->getPretty()) + 1);
}
return $version->getPretty();
}