From: Junio C Hamano Date: Thu, 21 Apr 2005 01:06:50 +0000 (-0700) Subject: [PATCH] Teach read-tree about commit objects X-Git-Tag: v0.99~789 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/b12ec373b8ecf7de6ea37db392fde57f13c5b51c?ds=sidebyside;hp=b12ec373b8ecf7de6ea37db392fde57f13c5b51c [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 Signed-off-by: Linus Torvalds ---