repo = $repo; $this->sha = $sha; } function GetLastCommit() { return $this->repo->GetObject($this->sha); } function GetTree() { return $this->GetLastCommit()->GetTree(); } }