Commit d5cbdba8 authored by Junio C Hamano's avatar Junio C Hamano

Merge branch 'cc/bisect-skip'

* cc/bisect-skip:
  bisect: teach "skip" to accept special arguments like "A..B"
parents 8c1944dd ee2314f5
......@@ -191,6 +191,21 @@ check_expected_revs() {
done
}
bisect_skip() {
all=''
for arg in "[email protected]"
do
case "$arg" in
*..*)
revs=$(git rev-list "$arg") || die "Bad rev input: $arg" ;;
*)
revs="'$arg'" ;;
esac
all="$all $revs"
done
bisect_state 'skip' $all
}
bisect_state() {
bisect_autostart
state=$1
......@@ -630,8 +645,10 @@ case "$#" in
git bisect -h ;;
start)
bisect_start "[email protected]" ;;
bad|good|skip)
bad|good)
bisect_state "$cmd" "[email protected]" ;;
skip)
bisect_skip "[email protected]" ;;
next)
# Not sure we want "next" at the UI level anymore.
bisect_next "[email protected]" ;;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment