Deliver archives incrementally to avoid OOM errors, by not using smarty
[gitphp.git] / include / git / GitExe.class.php
blob:a/include/git/GitExe.class.php -> blob:b/include/git/GitExe.class.php
--- a/include/git/GitExe.class.php
+++ b/include/git/GitExe.class.php
@@ -110,6 +110,22 @@
 	}
 
 	/**
+	 * Open
+	 *
+	 * Opens a resource to a command
+	 *
+	 * @param string $command the command to execute
+	 * @param array $args arguments
+	 * @return resource process handle
+	 */
+	public function Open($command, $args, $mode = 'r')
+	{
+		$fullCommand = $this->CreateCommand($command, $args);
+
+		return popen($fullCommand, $mode);
+	}
+
+	/**
 	 * BuildCommand
 	 *
 	 * Creates a command

comments