summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fed820a)
raw | patch | inline | side by side (parent: fed820a)
author | Christian Couder <chriscool@tuxfamily.org> | |
Sat, 24 Mar 2007 05:30:33 +0000 (06:30 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 24 Mar 2007 06:29:09 +0000 (23:29 -0700) |
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-bisect.txt | patch | blob | history |
index 0bfb1525b82bc426302343eed5b4b64ba1fbf7a3..8a42deb32446670f732b682b38d8a2efb07b484a 100644 (file)
binary search process to find which change introduced a bug, given an
old "good" commit object name and a later "bad" commit object name.
+Basic bisect commands: start, bad, good
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
The way you use it is:
------------------------------------------------
Until you have no more left, and you'll have been left with the first
bad kernel rev in "refs/bisect/bad".
+Bisect reset
+~~~~~~~~~~~~
+
Oh, and then after you want to reset to the original head, do a
------------------------------------------------
actually: it will reset the bisection state, and before it does that
it checks that you're not using some old bisection branch).
+Bisect visualize
+~~~~~~~~~~~~~~~~
+
During the bisection process, you can say
------------
to see the currently remaining suspects in `gitk`.
+Bisect log and bisect replay
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
The good/bad input is logged, and
------------
if you find later you made a mistake telling good/bad about a
revision.
+Avoiding to test a commit
+~~~~~~~~~~~~~~~~~~~~~~~~~
+
If in a middle of bisect session, you know what the bisect suggested
to try next is not a good one to test (e.g. the change the commit
introduces is known not to work in your environment and you know it
Then compile and test the one you chose to try. After that, tell
bisect what the result was as usual.
+Cutting down bisection by giving path parameter to bisect start
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
You can further cut down the number of trials if you know what part of
the tree is involved in the problem you are tracking down, by giving
paths parameters when you say `bisect start`, like this:
$ git bisect start arch/i386 include/asm-i386
------------
+Bisect run
+~~~~~~~~~~
+
If you have a script that can tell if the current source code is good
or bad, you can automatically bisect using: