Move to git-archive for zip support
[gitphp.git] / include / display.git_blobdiff_plain.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
<?php
/*
 *  display.git_blobdiff_plain.php
 *  gitphp: A PHP git repository browser
 *  Component: Display - blob diff (plaintext)
 *
 *  Copyright (C) 2008 Christopher Han <xiphux@gmail.com>
 */
 
 require_once('util.prep_tmpdir.php');
 require_once('display.git_diff_print.php');
 
function git_blobdiff_plain($projectroot,$project,$hash,$hashbase,$hashparent,$file)
{
        $ret = prep_tmpdir();
        if ($ret !== TRUE) {
                echo $ret;
                return;
        }
        header("Content-type: text/plain; charset=UTF-8");
        git_diff_print($projectroot . $project, $hashparent,($file?$file:$hashparent),$hash,($file?$file:$hash),"plain");
}
 
?>
 
comments