summaryrefslogtreecommitdiff
path: root/commit-tree.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-04-20 18:06:50 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-20 18:06:50 -0700
commitb12ec373b8ecf7de6ea37db392fde57f13c5b51c (patch)
tree9943f62d09ad2f09d855a53a8e8ab18330799810 /commit-tree.c
parent23b127ed085cbe2f853ce63b53c732a7b9e6de74 (diff)
downloadgit-b12ec373b8ecf7de6ea37db392fde57f13c5b51c.tar.gz
[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>
Diffstat (limited to 'commit-tree.c')
0 files changed, 0 insertions, 0 deletions