Updated: Automated "git bisect" will make your day

Posted . Visible to the public. Auto-destruct in 46 days

Added methods to keep the line number steady while you time-travel between commits:

Changes

    ...
  • For more information, see [the original "git bisect" card](https://makandracards.com/makandra/943-how-to-use-git-bisect-to-find-bugs-and-regressions).
  • -> [important]
  • -> Mind that **your command needs to work across all revisions that you will be bisecting**. If you're referencing a test file that's under version control, make sure you always run the correct test; copying the file to a location outside of your repository might be a viable solution to keep the line number steady while you time-travel between commits.
  • +## The command must work across revisions
  • +
  • +Mind that **your command needs to work across all revisions that you will be bisecting**. If you're referencing a test file that's under version control, make sure you always run the correct test.There are several options to keep the **line number** steady while you time-travel between commits:
  • +
  • +- Copy the file to a new location that is not tracked by Git
  • +- [Run RSpec example by description](https://makandracards.com/makandra/47400-rspec-running-examples-name-running-single-shared-example)
  • +- [Run RSpec example by nesting index](https://makandracards.com/makandra/624970-rspec-executing-specs-example-nesting-index)
Henning Koch
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to makandra dev (2025-03-24 08:13)