crytoteam/public_html/libgit/class.branch.php

23 lines
305 B
PHP
Raw Normal View History

2012-05-05 22:19:35 +02:00
<?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);
}
2012-05-05 23:01:03 +02:00
function GetTree()
{
2012-05-05 23:08:21 +02:00
return $this->GetLastCommit()->GetTree();
2012-05-05 23:01:03 +02:00
}
2012-05-05 22:19:35 +02:00
}