rev-list --objects: fix object list without commit.
commitef1cc2cc216b37c33f1f5d68e770404c435fe1f3
authorJunio C Hamano <junkio@cox.net>
Tue, 20 Dec 2005 00:16:49 +0000 (19 16:16 -0800)
committerJunio C Hamano <junkio@cox.net>
Tue, 20 Dec 2005 00:19:06 +0000 (19 16:19 -0800)
treeedd4550ff5f3ad404c0f2d6d6beb33e3d71af4c1
parent42f4570c86c41c5bfdc72465afc8f1928da69eea
rev-list --objects: fix object list without commit.

Earlier, "rev-list --objects <sha1>" for an object chain that
does not have any commit failed with a usage message.  This
fixes "send-pack remote $tag" where tag points at a non-commit
(e.g. a blob).

Signed-off-by: Junio C Hamano <junkio@cox.net>
rev-list.c