Skip to content

Commit

Permalink
Merge branch 'cc/bisect-skip'
Browse files Browse the repository at this point in the history
* cc/bisect-skip:
  bisect: teach "skip" to accept special arguments like "A..B"
  • Loading branch information
Junio C Hamano committed Nov 28, 2008
2 parents 8c1944d + ee2314f commit d5cbdba
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion git-bisect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,21 @@ check_expected_revs() {
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_autostart
state=$1
Expand Down Expand Up @@ -630,8 +645,10 @@ case "$#" in
git bisect -h ;;
start)
bisect_start "$@" ;;
bad|good|skip)
bad|good)
bisect_state "$cmd" "$@" ;;
skip)
bisect_skip "$@" ;;
next)
# Not sure we want "next" at the UI level anymore.
bisect_next "$@" ;;
Expand Down

0 comments on commit d5cbdba

Please sign in to comment.