crytoteam/public_html/libgit/class.branch.php

18 lines
233 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);
}
}