Merge branch 'cc/bisect-skip'
* cc/bisect-skip: bisect: teach "skip" to accept special arguments like "A..B"
This commit is contained in:
commit
d5cbdba843
@ -191,6 +191,21 @@ check_expected_revs() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bisect_skip() {
|
||||||
|
all=''
|
||||||
|
for arg in "$@"
|
||||||
|
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_state() {
|
||||||
bisect_autostart
|
bisect_autostart
|
||||||
state=$1
|
state=$1
|
||||||
@ -630,8 +645,10 @@ case "$#" in
|
|||||||
git bisect -h ;;
|
git bisect -h ;;
|
||||||
start)
|
start)
|
||||||
bisect_start "$@" ;;
|
bisect_start "$@" ;;
|
||||||
bad|good|skip)
|
bad|good)
|
||||||
bisect_state "$cmd" "$@" ;;
|
bisect_state "$cmd" "$@" ;;
|
||||||
|
skip)
|
||||||
|
bisect_skip "$@" ;;
|
||||||
next)
|
next)
|
||||||
# Not sure we want "next" at the UI level anymore.
|
# Not sure we want "next" at the UI level anymore.
|
||||||
bisect_next "$@" ;;
|
bisect_next "$@" ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user