/** * Loads an object's data from disk based on the object's sha1. * * @param string $sha Sha1 for object to load. */ public function loadRawData($sha) { $path = sprintf('%s/%s/%s/%s', $this->git->dir(), Git::DIR_OBJECTS, substr($sha, 0, 2), substr($sha, 2)); $data = Git::readFile($path, true); $data = explode("", $data, 2); return $data[1]; }