diff --git a/git-bisect.sh b/git-bisect.sh
index 8969553658bb5f4f2191f370062af9af33989d88..8b3c5858a901619eecd162229f92eb431b3e63f9 100755 (executable)
--- a/git-bisect.sh
+++ b/git-bisect.sh
mark <rev>... untestable revisions.
git bisect next
find next bisection to test and check it out.
mark <rev>... untestable revisions.
git bisect next
find next bisection to test and check it out.
-git bisect reset [<branch>]
- finish bisection search and go back to branch.
+git bisect reset [<commit>]
+ finish bisection search and go back to commit.
git bisect visualize
show bisect status in gitk.
git bisect replay <logfile>
git bisect visualize
show bisect status in gitk.
git bisect replay <logfile>
}
case "$#" in
0) branch=$(cat "$GIT_DIR/BISECT_START") ;;
}
case "$#" in
0) branch=$(cat "$GIT_DIR/BISECT_START") ;;
- 1) git show-ref --verify --quiet -- "refs/heads/$1" ||
- die "$1 does not seem to be a valid branch"
+ 1) git rev-parse --quiet --verify "$1^{commit}" > /dev/null ||
+ die "'$1' is not a valid commit"
branch="$1" ;;
*)
usage ;;
branch="$1" ;;
*)
usage ;;
exit $res
fi
exit $res
fi
- if grep "is first bad commit" "$GIT_DIR/BISECT_RUN" > /dev/null; then
+ if grep "is the first bad commit" "$GIT_DIR/BISECT_RUN" > /dev/null; then
echo "bisect run success"
exit 0;
fi
echo "bisect run success"
exit 0;
fi