Code

[PATCH] Teach diff-cache about commit objects
authorJunio C Hamano <junkio@cox.net>
Thu, 21 Apr 2005 01:06:49 +0000 (18:06 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 21 Apr 2005 01:06:49 +0000 (18:06 -0700)
commit38357e6703db9f2c1bff31de1ce7c7503c6db96a
tree122ad8b85c7e34ffbb897b0e9f6b1ad348f53cb8
parentf4913f91a960ebcfbc9c6a09dc909ce638cb5c66
[PATCH] Teach diff-cache about commit objects

Updates diff-cache.c to use read_tree_with_tree_or_commit_sha1()
function.  The end-user visible result is the same --- the command
takes either tree or commit ID.

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