Created
June 28, 2018 11:59
-
-
Save arondius/ca0b1a48fd939a4b26c58abdcd4df030 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
echo "please give me the hash of the last good commit" | |
read hash | |
git bisect start master $hash | |
for rev in $(git rev-list $hash..dev --merges --first-parent); do | |
git rev-list $rev^2 --not $rev^ | |
done | xargs git bisect skip | |
git bisect run /tmp/grep.sh | |
git bisect reset |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment