crytoteam/public_html/libgit/class.branch.php
2012-05-05 23:08:21 +02:00

23 lines
305 B
PHP

<?php
class GitBranch
{
public $sha = "";
public $repo = null;
function __construct($repo, $sha)
{
$this->repo = $repo;
$this->sha = $sha;
}
function GetLastCommit()
{
return $this->repo->GetObject($this->sha);
}
function GetTree()
{
return $this->GetLastCommit()->GetTree();
}
}