author | Junio C Hamano <gitster@pobox.com> | |
Thu, 15 Nov 2007 08:47:53 +0000 (00:47 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 16 Nov 2007 09:35:58 +0000 (01:35 -0800) | ||
commit | 0bee49c6abf18082a01f5d1a2106608456fb7d5a | |
tree | f25cfa06d9424c8a202483ae7abb337627792a7b | tree | snapshot |
parent | 3d7cd64cb493e3e30e4398c7b6cd66ee38cb4418 | commit | diff |
git-bisect: modernize branch shuffling hack
When switching to a new rev, we first made "new-bisect" branch to
point at the chosen commit, attempt to switch to it, and then
finally renamed the new-bisect branch to bisect by hand when
successful. This is so that we can catch checkout failure (your
local modification may interfere with switching to the chosen
version) without losing information on which commit the next
attempt should be made.
Rewrite it using a more modern form but without breaking the
safety.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When switching to a new rev, we first made "new-bisect" branch to
point at the chosen commit, attempt to switch to it, and then
finally renamed the new-bisect branch to bisect by hand when
successful. This is so that we can catch checkout failure (your
local modification may interfere with switching to the chosen
version) without losing information on which commit the next
attempt should be made.
Rewrite it using a more modern form but without breaking the
safety.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-bisect.sh | diff | blob | history |