Repo 'bisect' for Android debugging?

git bisect works by counting the number of commits between good and bad and checking for a change in the middle. Unfortunately, this will not work for the repo, because one project (for example, a wireframe) can have many changes at an early stage, and another project (for example, a kernel) can have a bunch of later changes, so "repo forall -c" git bisect ... "" maybe one project is tested in a state much older than another.

My question is whether there is a way to get git-bisect to choose its commit depending on the commit date, so when this is done in projects, we will most likely remain in a state that compiles cleanly.

+4
source share
2 answers

git bisect not intended for simultaneous use in multiple repositories.

You are probably better off writing your own script that implements the basic date division algorithm and uses git rev-list -n1 --before <DATEVALUE> in each repository to get a git commit to check if any date matches your script in present divides in half.

Here is an example bisection script that I wrote for another purpose. Please note that it is not specifically designed for your situation; this is just an example of a bisection implementation:

https://gist.github.com/2040290

+5
source
+4
source

Source: https://habr.com/ru/post/1013028/


All Articles