Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-bisect: use update-ref to mark good/bad commits
author
Junio C Hamano
<gitster@pobox.com>
Thu, 15 Nov 2007 08:42:04 +0000
(
00:42
-0800)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 16 Nov 2007 09:35:58 +0000
(
01:35
-0800)
This removes the last instance of making a ref by hand with
"echo SHA1 >.git/refs/$refname" from the script and replaces it
with update-ref.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-bisect.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(from parent 1:
e23cb8c
)
diff --git
a/git-bisect.sh
b/git-bisect.sh
index 3a210335e7e2bdcaebf561b23374a32bec2faffd..4b74a7bb421e35627bf749316027707237210e7a 100755
(executable)
--- a/
git-bisect.sh
+++ b/
git-bisect.sh
@@
-130,7
+130,7
@@
bisect_write() {
good|skip) tag="$state"-"$rev" ;;
*) die "Bad bisect_write argument: $state" ;;
esac
-
echo "$rev" >"$GIT_DIR/refs/bisect/$tag
"
+
git update-ref "refs/bisect/$tag" "$rev
"
echo "# $state: "$(git show-branch $rev) >>"$GIT_DIR/BISECT_LOG"
test -z "$nolog" && echo "git-bisect $state $rev" >>"$GIT_DIR/BISECT_LOG"
}