Example #1
0
 public function readObject($sha1)
 {
     $dir = $this->path . '/objects/';
     if (!$this->packfile) {
         $this->packfile = new Packfile($dir);
     }
     $decoded = $this->packfile->getObject($sha1);
     $loader = new \gihp\Object\Loader($this);
     return \gihp\Parser\File::importObject($loader, $decoded, $sha1);
 }