* [PATCH 4/4] Use tree_from_tree_or_commit() in ls-tree.
@ 2005-04-20 6:11 Junio C Hamano
0 siblings, 0 replies; only message in thread
From: Junio C Hamano @ 2005-04-20 6:11 UTC (permalink / raw
To: Linus Torvalds; +Cc: git
This patch makes ls-tree accept either tree or commit.
Signed-off-by: Junio C Hamano <junkio@cox.net>
---
ls-tree.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Makefile: needs update
cache.h: needs update
sha1_file.c: needs update
--- a/ls-tree.c
+++ b/ls-tree.c
@@ -74,7 +74,7 @@ static int list(unsigned char *sha1)
unsigned long size;
char type[20];
- buffer = read_sha1_file(sha1, type, &size);
+ buffer = tree_from_tree_or_commit(sha1, type, &size);
if (!buffer)
die("unable to read sha1 file");
list_recursive(buffer, type, size, NULL);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-04-20 6:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-20 6:11 [PATCH 4/4] Use tree_from_tree_or_commit() in ls-tree Junio C Hamano
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).