git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Call builtin ls-tree in git-cat-file -p

From
Petr Baudis <pasky@suse.cz>
Date
May 26, 2006, 16:59 UTC
Message-ID
<20060526165917.5215.39602.stgit@machine.or.cz>
Signed-off-by: Petr Baudis <pasky@suse.cz>
---
 builtin-cat-file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin-cat-file.c b/builtin-cat-file.c
index 8ab136e..4d36817 100644
--- a/builtin-cat-file.c
+++ b/builtin-cat-file.c
@@ -141,7 +141,7 @@ int cmd_cat_file(int argc, const char **
 
 		/* custom pretty-print here */
 		if (!strcmp(type, tree_type))
-			return execl_git_cmd("ls-tree", argv[2], NULL);
+			return cmd_ls_tree(2, argv + 1, NULL);
 
 		buf = read_sha1_file(sha1, type, &size);
 		if (!buf)
Message 1 of 1 in “Call builtin ls-tree in git-cat-file -p”
  1. Call builtin ls-tree in git-cat-file -pPetr Baudis, May 26, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.