From: Christian Couder Date: Mon, 23 Nov 2009 04:16:14 +0000 (+0100) Subject: bisect: simplify calling visualizer using '--bisect' option X-Git-Tag: v1.6.6-rc1~45 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=fc13aa3d09407998e5cb08a5c1da05d0000fe81d;p=git-core%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/git-bisect.sh b/git-bisect.sh index 8b3c5858a..a5ea843fb 100755 --- a/git-bisect.sh +++ b/git-bisect.sh @@ -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() {