Require instead of include for required files
[gitphp.git] / include / gitutil.git_ls_tree.php
blob:a/include/gitutil.git_ls_tree.php -> blob:b/include/gitutil.git_ls_tree.php
--- a/include/gitutil.git_ls_tree.php
+++ b/include/gitutil.git_ls_tree.php
@@ -10,11 +10,13 @@
  require_once('defs.commands.php');
  require_once('gitutil.git_exec.php');
 
-function git_ls_tree($proj,$hash,$nullterm = FALSE)
+function git_ls_tree($proj,$hash,$nullterm = FALSE, $recurse = FALSE)
 {
 	$cmd = GIT_LS_TREE;
 	if ($nullterm)
 		$cmd .= " -z";
+	if ($recurse)
+		$cmd .= " -r -t --full-name";
 	return git_exec($proj, $cmd . " " . $hash);
 }
 

comments