public function renderCommitHead(Commit $commit) { return $this->indent . '- [' . $commit->getHash() . '] ' . $commit->getLabel(); }
/** * Appends commit along with comments. * @param Commit commit object */ public function addCommit(Commit $commit) { $new = $this->findCommit($commit->getHash()); $new->setLabel($commit->getLabel()); $new->addComments($commit->getComments()); }
public function set(Commit $commit) { $this->setHash($commit->hashHash()); $this->setLabel($commit->getLabel()); $this->setComments($commit->getComments()); }