Last active
August 11, 2017 15:04
-
-
Save childnode/4a556ebbc44b3b9f12394b03d6c8d51c to your computer and use it in GitHub Desktop.
Find the guilty one
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
function git-guilty() { ./gradlew :test; [ "$?" != 0 ] && git reset --hard HEAD^ && git-guilty; } | |
git-guilty | |
echo "========== LAST WORKING =========" | |
git describe | |
git log -1 HEAD | |
echo "========== SUSPICIOUS PATCH =========" | |
git log -1 -p --stat HEAD@{1} | |
git reset --hard origin/HEAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yes, there is ... https://git-scm.com/docs/git-bisect but then you have to know at least one working revision ;p
If you know this, bisect is much faster!!!
git bisect start HEAD HEAD~10; git bisect run ./gradlew :test