@matheusbsbs / matheus-bagliano / commits / e3f062bfd4
Fork 0

Bisect visualize: use "for-each-ref" to list all good refs.

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>

Christian Couder committed Nov 17, 2007 at 14:35 UTC e3f062bfd412adafb7ed6a8f24a3ec89d39211fc
1 file changed +2 -2
git-bisect.sh
+2 -2
@@ -324,8 +324,8 @@ bisect_next() {
324
325 bisect_visualize() {
326 bisect_next_check fail
327 - not=`cd "$GIT_DIR/refs" && echo bisect/good-*`
328 - eval gitk bisect/bad --not $not -- $(cat "$GIT_DIR/BISECT_NAMES")
327 + not=$(git for-each-ref --format='%(refname)' "refs/bisect/good-*")
328 + eval gitk refs/bisect/bad --not $not -- $(cat "$GIT_DIR/BISECT_NAMES")
329 }
330
331 bisect_reset() {