tools/bisect-create: Support "bisect run"
authorAlexander Strasser <eclipse7@gmx.net>
Wed, 11 Jul 2012 21:12:00 +0000 (23:12 +0200)
committerAlexander Strasser <eclipse7@gmx.net>
Mon, 23 Jul 2012 23:24:23 +0000 (01:24 +0200)
  Make it possible to use the run bisect sub command. As with all
other ffbisect commands, revisions that do not contain the needed
tools are skipped.

Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
tools/bisect-create

index 6442b5c..fc60e86 100755 (executable)
@@ -39,4 +39,8 @@ case "$1" in
             git bisect skip || break
         done
     ;;
+    run)
+       shift # remove "run" from arguments
+       git bisect run sh -c "ls \`cat tools/bisect.need\` > /dev/null 2> /dev/null || exit 125; \"\$@\"" sh "$@"
+    ;;
 esac