aboutsummaryrefslogtreecommitdiff
path: root/git-bisect.sh
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2009-11-23 05:16:14 +0100
committerJunio C Hamano <gitster@pobox.com>2009-11-22 22:59:05 -0800
commitfc13aa3d09407998e5cb08a5c1da05d0000fe81d (patch)
treeffb8dfe982269d79a6b58f3fd0a1c111ddf2436e /git-bisect.sh
parentd21f9794ceff7d89fd2fc44a3e5ff106d5dbd141 (diff)
downloadgit-fc13aa3d09407998e5cb08a5c1da05d0000fe81d.tar.gz
git-fc13aa3d09407998e5cb08a5c1da05d0000fe81d.tar.xz
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>
Diffstat (limited to 'git-bisect.sh')
-rwxr-xr-xgit-bisect.sh3
1 files changed, 1 insertions, 2 deletions
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() {