Cleanup check_valid in commit-tree.
commit66035a6b3d629b546daef3784f5351d58f4f17b1
authorShawn O. Pearce <spearce@spearce.org>
Tue, 27 Feb 2007 15:00:33 +0000 (27 10:00 -0500)
committerJunio C Hamano <junkio@cox.net>
Wed, 28 Feb 2007 05:40:18 +0000 (27 21:40 -0800)
tree04511971e8fdfd78c9e421711e47cb4fe66d7cb8
parentfef742c4ed2be2b3b72f510314b7b2f3a7a7d0a7
Cleanup check_valid in commit-tree.

This routine should be using the object_type enum rather than a
string comparsion, as the expected type is always supplied and is
known at compile time.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-commit-tree.c