2 ms·
To bisect with a new test, you have to do this: $ git bisect [good|bad] $ git cherry-pick new-test $ ./run-the-test $ git reset --hard HEAD^ $ gi
by kazinator 4y ago
To bisect with a new test, you have to do this:
$ git bisect [good|bad]
$ git cherry-pick new-test
$ ./run-the-test
$ git reset --hard HEAD^
$ git bisect [good|bad]
I sometimes use the stash for that: cherry pick the test as a working tree uncommitted change. "git stash" it before every bisect step, then "git pop".
- alkonaut 4y agoYeah, since it's more or less a standard cumbersome recipe, it seems it would be a good idea to create a high level git switch for it. git bisect run --cherry-pick abc123 [....] to do a regular bisect but at each step cherry picking the commit abc123