Added the display of the commit parents in the changelog view.

The old commits will not have the parents displayed as already cached in the DB, but the new will get them.
This commit is contained in:
Loïc d'Anterroches
2011-01-24 14:20:33 +01:00
parent 390c9b5048
commit 116a7e34db
5 changed files with 55 additions and 4 deletions

View File

@@ -116,6 +116,14 @@ class IDF_Scm_Git extends IDF_Scm
return $this->_inObject($commit, 'branch');
}
/**
* Will find the parents if available.
*/
public function getExtraProperties($obj)
{
return (isset($obj->parents)) ? array('parents' => $obj->parents) : array();
}
/**
* @see IDF_Scm::getTags()
**/