function commit() { $this->autocommitToRepoAuthor = $this->lastComment ? $this->lastComment->gitAuthor() : null; $r = parent::commit(); $this->lastComment = false; return $r; }