diff-tree: show hex sha1 of the single-commit argument case correctly.
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 18 May 2005 20:43:58 +0000 (13:43 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 18 May 2005 20:43:58 +0000 (13:43 -0700)
commit73848892adeaa421825672bce929b9cc16043fa9
tree56dbc1aa76bca0ff8ff72e311f5dad382caad8d3
parent0a8365a179685feecee427075a9c2db8a66c434a
diff-tree: show hex sha1 of the single-commit argument case correctly.

We can't just do the "sha1_to_hex()" thing directly, since the
buffer in question will be overwritten by the name of the parent.

So teach diff_tree_commit() to generate the proper hex name itself.
diff-tree.c