Skip to content

Commit

Permalink
bisect: simplify calling visualizer using '--bisect' option
Browse files Browse the repository at this point in the history
In commit ad3f9a7 (Add '--bisect' revision machinery argument) the
'--bisect' option was added to easily pass bisection refs to
commands using the revision machinery.

So it is now shorter and safer to use the new '--bisect' revision
machinery option, than to compute the refs that we must pass.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Christian Couder authored and Junio C Hamano committed Nov 23, 2009
1 parent d21f979 commit fc13aa3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions git-bisect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,7 @@ bisect_visualize() {
esac
fi

not=$(git for-each-ref --format='%(refname)' "refs/bisect/good-*")
eval '"$@"' refs/bisect/bad --not $not -- $(cat "$GIT_DIR/BISECT_NAMES")
eval '"$@"' --bisect -- $(cat "$GIT_DIR/BISECT_NAMES")
}

bisect_reset() {
Expand Down

0 comments on commit fc13aa3

Please sign in to comment.