Move to git-archive for zip support
[gitphp.git] / include / gitutil.git_get_type.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
/*
 *  gitutil.git_get_type.php
 *  gitphp: A PHP git repository browser
 *  Component: Git utility - get type
 *
 *  Copyright (C) 2008 Christopher Han <xiphux@gmail.com>
 */
 
require_once('gitutil.git_cat_file.php');
 
function git_get_type($project, $hash)
{
        return trim(git_cat_file($project,$hash,NULL,"-t"));
}
 
?>
 
comments