@@ -1455,7 +1455,6 @@ int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
OPT_SUBCOMMAND("terms", &fn, cmd_bisect_terms),
OPT_SUBCOMMAND("start", &fn, cmd_bisect_start),
OPT_SUBCOMMAND("next", &fn, cmd_bisect_next),
- OPT_SUBCOMMAND("state", &fn, cmd_bisect_state),
OPT_SUBCOMMAND("log", &fn, cmd_bisect_log),
OPT_SUBCOMMAND("replay", &fn, cmd_bisect_replay),
OPT_SUBCOMMAND("skip", &fn, cmd_bisect_skip),
@@ -34,51 +34,4 @@ Please use "git help bisect" to get the full man page.'
OPTIONS_SPEC=
. git-sh-setup
-TERM_BAD=bad
-TERM_GOOD=good
-
-get_terms () {
- if test -s "$GIT_DIR/BISECT_TERMS"
- then
- {
- read TERM_BAD
- read TERM_GOOD
- } <"$GIT_DIR/BISECT_TERMS"
- fi
-}
-
-case "$#" in
-0)
- usage ;;
-*)
- cmd="$1"
- get_terms
- shift
- case "$cmd" in
- help)
- git bisect -h ;;
- start)
- git bisect--helper start "$@" ;;
- bad|good|new|old|"$TERM_BAD"|"$TERM_GOOD")
- git bisect--helper "$cmd" "$@" ;;
- skip)
- git bisect--helper skip "$@" || exit;;
- next)
- # Not sure we want "next" at the UI level anymore.
- git bisect--helper next "$@" || exit ;;
- visualize|view)
- git bisect--helper visualize "$@" || exit;;
- reset)
- git bisect--helper reset "$@" ;;
- replay)
- git bisect--helper replay "$@" || exit;;
- log)
- git bisect--helper log || exit ;;
- run)
- git bisect--helper run "$@" || exit;;
- terms)
- git bisect--helper terms "$@" || exit;;
- *)
- usage ;;
- esac
-esac
+exec git bisect--helper "$@"