Improving performance of fetching git objects by using git cat-file --batch through a pipe. Also improved debug output and added destructor-based auto-timers
[gitphp.git] / include / git / blob / BlobLoad_Git.class.php
blob:a/include/git/blob/BlobLoad_Git.class.php -> blob:b/include/git/blob/BlobLoad_Git.class.php
--- a/include/git/blob/BlobLoad_Git.class.php
+++ b/include/git/blob/BlobLoad_Git.class.php
@@ -20,11 +20,8 @@
 		if (!$blob)
 			return;
 
-		$args = array();
-		$args[] = 'blob';
-		$args[] = $blob->GetHash();
-
-		return $this->exe->Execute($blob->GetProject()->GetPath(), GIT_CAT_FILE, $args);
+		$result = $this->exe->GetObjectData($blob->GetProject()->GetPath(), $blob->GetHash());
+		return $result['contents'];
 	}
 
 	/**

comments