bisect: simplify calling visualizer using '--bisect' option
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>
Christian Couder committed
Nov 23, 2009 at 05:16 UTC
fc13aa3d09407998e5cb08a5c1da05d0000fe81d
1 file changed
+1
-2
git-bisect.sh
+1
-2
@@ -300,8 +300,7 @@ bisect_visualize() {
300
esac
301
fi
302
303
- not=$(git for-each-ref --format='%(refname)' "refs/bisect/good-*")
304
- eval '"$@"' refs/bisect/bad --not $not -- $(cat "$GIT_DIR/BISECT_NAMES")
303
+ eval '"$@"' --bisect -- $(cat "$GIT_DIR/BISECT_NAMES")
304
}
305
306
bisect_reset() {