Unify heads template
[gitphp.git] / include / display.git_heads.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/*
 *  display.git_heads.php
 *  gitphp: A PHP git repository browser
 *  Component: Display - heads
 *
 *  Copyright (C) 2008 Christopher Han <xiphux@gmail.com>
 */
 
 require_once('gitutil.git_read_head.php');
 require_once('gitutil.git_read_refs.php');
 
function git_heads($projectroot,$project)
{
        global $tpl;
        $head = git_read_head($projectroot . $project);
        $tpl->clear_all_assign();
        $tpl->assign("project",$project);
        $tpl->assign("head",$head);
        $headlist = git_read_refs($projectroot, $project, "refs/heads");
        $tpl->assign("headlist",$headlist);
        $tpl->display("heads.tpl");
}
 
?>
 
comments