Questions tagged [git-bisect]

git-bisect is part of the git CM software. It is used to find which change broke something.

101 questions
2
votes
1 answer

Is there a way to retroactively flatten merge commits?

I have a git repo with a combination of commits and merges containing multiple commits. I am trying to use git bisect to determine where a bug was introduced, but when the resulting commit points to a merge commit with a dozen different commits,…
2
votes
2 answers

`git bisect run` with a bash function

Is there a convenient way to write a bash script to run git bisect run, where the bisect command used is itself a bash function? If my function is named step, it appears that git bisect run step and git bisect run bash -c step are both unable to…
l k
  • 117
  • 8
2
votes
0 answers

Git commit from a bisect

I have only ever used git add . for this project, but somewhere along the line I started getting the strange "modified content, untracked content" error on one of my subdirectories (called users). Other stackoverflow answers didn't work for me. I…
KyleR
  • 139
  • 2
  • 10
2
votes
2 answers

Can I synthesize a branch in git that skips a single change set

Assume the following git branch: A -> B -> C -> D -> E -> F -> G I've determined via git bisect that commit C introduced a bug, but reverting the changes introduced by C at the top of the branch does not solve the issue. This indicated to me that…
Chaim Geretz
  • 826
  • 5
  • 23
2
votes
1 answer

git bisect in combination with CRLF/LF

I am trying to git bisect some bad behavior in a public repo. The repo has: some commits with CRLF (I am on MacOS, so expecting LF) a .gitattributes file in its root, normalizing .c, .h, and .java files As I understand it, none of the present…
Gauthier
  • 40,309
  • 11
  • 63
  • 97
2
votes
1 answer

Bisecting over gitflow style git repository with broken intermidiate commits

It is normal to have intermediate commits that failed to compile or broken in other way in feature branch in gitflow model. Only the matter is to be stable at point of merge to develop branch where review and automatic tests applied. Can git bisect…
gavenkoa
  • 45,285
  • 19
  • 251
  • 303
2
votes
0 answers

Does "git bisect log" keep all state information?

Motivation I was doing a bisection and considering saving its state, then maybe continue it later. It's not clear if git bisect log can do exactly that. Search before you post man git bisect says: Bisect log and bisect replay After having marked…
Stéphane Gourichon
  • 6,493
  • 4
  • 37
  • 48
2
votes
1 answer

How to git-bisect only commits from a single author?

The problem I'm trying to solve is: I know that between version X and version Y, person P committed a change that broke something. I know I can git-bisect between X and Y and find the change, but it would be faster and more efficient to filter the…
Jordan Samuels
  • 977
  • 6
  • 10
2
votes
0 answers

git bisect for several git repos

git-bisect is a nice tool. But your software gets build from several repositories: core plugins customer-settings Is there a way to use git-bisect if you know: Test was good with core version123 plugin1 version234 plugin2…
guettli
  • 25,042
  • 81
  • 346
  • 663
2
votes
1 answer

Is there any way to run Cucumber tests from parent folder of features folder?

I am trying to run a git bisect while using our automated tests to check the commit if it is the one causing the defect. The structure of our program is: app - cucumber_tests - features/ - main_features/ - cucumber.yml -…
adam-beck
  • 5,659
  • 5
  • 20
  • 34
2
votes
2 answers

What's the best way to change the working tree to a specific commit before bisecting?

My usual workflow when starting a git bisect session is: git bisect start # start a bisect session git bisect bad # I noticed that the current state is broken Now, often I know that things worked in the past, but I don't know…
Frerich Raabe
  • 90,689
  • 19
  • 115
  • 207
1
vote
1 answer

compile qt-webkit with mingw32-make for bisecting

I started a bisect qtwebkit and when I try to compile it in the first stage it gave me the following exception. I tried using a older qmake but still it gives the same exception. What does this really mean and how can I fix it. g++ -c -Wall…
Tharanga
  • 2,007
  • 4
  • 32
  • 50
1
vote
1 answer

How Could I use git log --oneline --all output for ubuntu which will be the same as look like mac, when I will use git bisect good/bad command

I have set the both git bisect good and bad commit but for Ubuntu refs/bisect/bad and good is missing. So how could I bring it back in ubuntu for the same command( git log --oneline --all). This is in mac git log --oneline --all command output This…
1
vote
1 answer

Plumbing command to get the result of git-bisect with --no-checkout

I'm writing a script which automatically finds a specific commit. I've reached the part when I'm calling git bisect start --no-checkout and git bisect run ./my_check_commit_script.sh. It finds and displays the correct commit. However, I don't know…
Piotr Siupa
  • 3,929
  • 2
  • 29
  • 65
1
vote
1 answer

How to perform a git bisect if I don't know which old commit is good?

In git, we have bisect to conveniently find the first bad commit, in this way: git bisect start linux-next/master v2.6.26-rc8 git bisect run make kernel/fork.o But the prerequisite is I know which old commit is good. In this example, it is…
huangyingw
  • 89
  • 6