[PATCH] Teach read-tree about commit objects
authorJunio C Hamano <junkio@cox.net>
Thu, 21 Apr 2005 01:06:50 +0000 (18:06 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 21 Apr 2005 01:06:50 +0000 (18:06 -0700)
commitb12ec373b8ecf7de6ea37db392fde57f13c5b51c
tree9943f62d09ad2f09d855a53a8e8ab18330799810
parent23b127ed085cbe2f853ce63b53c732a7b9e6de74
[PATCH] Teach read-tree about commit objects

Updates read-tree to use read_tree_with_tree_or_commit_sha1()
function.  The command can take either tree or commit IDs with
this patch.

The change involves a slight modification of how it recurses down
the tree.  Earlier the caller only supplied SHA1 and the recurser
read the object using it, but now it is the caller's responsibility
to read the object and give it to the recurser.  This matches the
way recursive behaviour is done in other tree- related commands.

Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
read-tree.c