crytoteam/public_html/libgit/class.pack.php

17 lines
340 B
PHP
Raw Normal View History

2012-05-06 00:43:50 +02:00
<?php
class GitPack
{
public $repo = null;
public $index = array();
function __construct($repo, $name)
{
$this->repo = $repo;
$index_filename = "{$repo->path}/objects/pack/{$name}.idx";
$pack_filename = "{$repo->path}/objects/pack/{$name}.pack";
$this->index = new GitPackIndex(file_get_contents($index_filename));
}
}