[PATCH 7/9] bisect: better diagnostics, in case of mis-typed option.
Signed-off-by: Jon Seymour <jon.seymour@gmail.com>
---
git-bisect.sh | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/git-bisect.sh b/git-bisect.sh
index f3913ba..3ae1aa9 100755
--- a/git-bisect.sh
+++ b/git-bisect.sh
@@ -121,6 +121,9 @@ bisect_start() {
echo "$arg" > $GIT_DIR/BISECT_IGNORE_CHECKOUT_FAILURE
shift
;;
+ --*)
+ die "unrecognised option: $arg"
+ ;;
*)
rev=$(git rev-parse -q --verify "$arg^{commit}") || {
test $has_double_dash -eq 1 &&
--
1.7.6.347.g96e0b.dirty