From 3f22fcce3ae67ef052b435a8aaee266e258f0734 Mon Sep 17 00:00:00 2001
From: Alexander Strasser <eclipse7@gmx.net>
Date: Wed, 11 Jul 2012 23:12:00 +0200
Subject: [PATCH] tools/bisect-create: Support "bisect run"

  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 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/bisect-create b/tools/bisect-create
index 6442b5cbe36..fc60e866697 100755
--- a/tools/bisect-create
+++ b/tools/bisect-create
@@ -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
-- 
GitLab