git-reset: complain and exit upon seeing an unknown parameter.
authorJunio C Hamano <junkio@cox.net>
Thu, 6 Jul 2006 02:44:03 +0000 (19:44 -0700)
committerJunio C Hamano <junkio@cox.net>
Thu, 6 Jul 2006 02:44:03 +0000 (19:44 -0700)
commitac83aa2e1fffcb4e7560431ddc15b288dc237634
tree04260e7de0a88df848b005663a7f5aa38610a6ef
parentbc483d04804888c2da64e4c6685c2860a9041122
git-reset: complain and exit upon seeing an unknown parameter.

The check to use "rev-parse --verify" was defeated by the use of
"--default HEAD".  "git reset --hard bogus-committish" just
defaulted to reset to the HEAD without complaining.

Signed-off-by: Junio C Hamano <junkio@cox.net>
git-reset.sh