* [PATCH] Call builtin ls-tree in git-cat-file -p
@ 2006-05-26 16:59 Petr Baudis
0 siblings, 0 replies; only message in thread
From: Petr Baudis @ 2006-05-26 16:59 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
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)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2006-05-26 16:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-26 16:59 [PATCH] Call builtin ls-tree in git-cat-file -p Petr Baudis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).