Skip to content

Instantly share code, notes, and snippets.

@arondius
Created June 28, 2018 11:59
Show Gist options
  • Save arondius/ca0b1a48fd939a4b26c58abdcd4df030 to your computer and use it in GitHub Desktop.
Save arondius/ca0b1a48fd939a4b26c58abdcd4df030 to your computer and use it in GitHub Desktop.
#!/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