crytoteam/public_html/libgit/base.php

38 lines
869 B
PHP
Raw Normal View History

<?php
2012-05-05 20:10:55 +02:00
function pretty_dump($input)
{
ob_start();
var_dump($input);
$output = ob_get_contents();
ob_end_clean();
while(preg_match("/^[ ]*[ ]/m", $output) == 1)
{
$output = preg_replace("/^([ ]*)[ ]/m", "$1&nbsp;&nbsp;&nbsp;", $output);
}
$output = nl2br($output);
echo($output);
}
2012-05-05 20:27:36 +02:00
function sha1_from_bin($bin)
{
return bin2hex($bin);
}
2012-05-05 22:19:35 +02:00
class GitBranchNotFoundException extends Exception {}
require(dirname(__FILE__) . "/class.repository.php");
2012-05-05 21:40:16 +02:00
require(dirname(__FILE__) . "/class.branch.php");
require(dirname(__FILE__) . "/class.object.php");
2012-05-05 21:31:08 +02:00
require(dirname(__FILE__) . "/class.blob.php");
require(dirname(__FILE__) . "/class.tag.php");
2012-05-05 20:27:36 +02:00
require(dirname(__FILE__) . "/class.tree.php");
2012-05-05 21:31:08 +02:00
require(dirname(__FILE__) . "/class.tree.element.php");
require(dirname(__FILE__) . "/class.commit.php");
require(dirname(__FILE__) . "/class.actor.php");
?>