Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grosser/git-autobisect
Find the first broken commit without having to learn git bisect
https://github.com/grosser/git-autobisect
Last synced: 23 days ago
JSON representation
Find the first broken commit without having to learn git bisect
- Host: GitHub
- URL: https://github.com/grosser/git-autobisect
- Owner: grosser
- Created: 2012-01-15T03:13:49.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2018-11-22T04:04:11.000Z (about 6 years ago)
- Last Synced: 2024-12-07T21:06:55.593Z (about 1 month ago)
- Language: Ruby
- Homepage:
- Size: 51.8 KB
- Stars: 86
- Watchers: 5
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
- awesome-ruby - git-auto-bisect - Find the commit that broke master. (Git Tools)
README
Find the first broken commit without having to learn git bisect.
- automagically bundles if necessary
- stops at first bad commit
- takes binary steps (`HEAD~1`, `HEAD~2`, `HEAD~4`, `HEAD~8`, ...)Install
=======```Bash
gem install git-autobisect
```or as standalone binary (needs any ruby)
```Bash
curl -sL https://github.com/grosser/git-autobisect/releases/download/v0.4.3/git-autobisect > /usr/local/bin/git-autobisect && \
chmod +x /usr/local/bin/git-autobisect && \
git-autobisect --version
```Usage
=====cd your project
# run a test that has a non-0 exit status
git-autobisect 'rspec spec/models/user_spec.rb'
... grab a coffee ...
---> The first bad commit is a4328fa
git show### Options
-m, --max N Inspect commits between HEAD..HEAD~
-s, --start N Use N (instead of 1) as initial step and keep multiplying by 2
--step N Use N as step (instead of multiplying by 2
--no-bundle Do not bundle even if a Gemfile existsTIPS
====
- do not fail if test file is missing `[ ! -f spec/my_spec.rb ] || rspec spec/my_spec.rb`TODO
====
- option for max-step-size so you can use a finer grained approach
- option to disable `bundle check || bundle` injection
- option to consider a build failed if it finishes faster then x secondsDevelopment
===========
- `bundle && bundle exec rake`
- Tests run a lot faster without `bundle exec`Author
======
[Michael Grosser](http://grosser.it)
[email protected]
License: MIT
[![Build Status](https://travis-ci.org/grosser/git-autobisect.png)](https://travis-ci.org/grosser/git-autobisect)