summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0bee49c)
raw | patch | inline | side by side (parent: 0bee49c)
author | Christian Couder <chriscool@tuxfamily.org> | |
Sat, 17 Nov 2007 13:35:25 +0000 (14:35 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 17 Nov 2007 18:24:25 +0000 (10:24 -0800) |
In bisect_visualize, "cd $GIT_DIR/refs && echo bisect/good-*" was
still used instead of "git for-each-ref". This patch fix it.
We now pass "refs/bisect/bad" and "--not refs/bisect/good-<rev>"
instead of "bisect/bad" and "--not bisect/good-<rev>" to gitk,
but it seems to work.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
still used instead of "git for-each-ref". This patch fix it.
We now pass "refs/bisect/bad" and "--not refs/bisect/good-<rev>"
instead of "bisect/bad" and "--not bisect/good-<rev>" to gitk,
but it seems to work.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-bisect.sh | patch | blob | history |
diff --git a/git-bisect.sh b/git-bisect.sh
index dae8a8e9806040bd396692f118f3887f5f043ed1..2b20037a11687d4d867038d5544c81d709fce8ac 100755 (executable)
--- a/git-bisect.sh
+++ b/git-bisect.sh
bisect_visualize() {
bisect_next_check fail
- not=`cd "$GIT_DIR/refs" && echo bisect/good-*`
- eval gitk bisect/bad --not $not -- $(cat "$GIT_DIR/BISECT_NAMES")
+ not=$(git for-each-ref --format='%(refname)' "refs/bisect/good-*")
+ eval gitk refs/bisect/bad --not $not -- $(cat "$GIT_DIR/BISECT_NAMES")
}
bisect_reset() {