From: Jon Seymour Date: Sun, 24 Jul 2011 05:57:52 GMT Subject: [PATCH 7/9] bisect: better diagnostics, in case of mis-typed option. Message-ID: <1311487074-25070-8-git-send-email-jon.seymour@gmail.com> In-Reply-To: <1311487074-25070-1-git-send-email-jon.seymour@gmail.com> Signed-off-by: Jon Seymour --- 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