/** * Sets the head hash this log will walk from * * @param string $hash head commit hash */ public function SetHeadHash($hash) { if (empty($hash)) { $head = $this->project->GetHeadCommit(); if ($head) { $hash = $head->GetHash(); } } if ($hash != $this->hash) { $this->Clear(); $this->hash = $hash; } }