public function getCommit($hash)
{
if (!isset($this->objects[$hash])) {
$this->objects[$hash] = new Commit($this, $hash);
}
return $this->objects[$hash];
}
public function get($hash, $array = false) { $commit = $this->repository->getCommit($hash); if ($array) { return $this->commitToArray($commit); } return $commit; }