summaryrefslogtreecommitdiffstats
path: root/git-bisect-lk2009.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-10-30 16:34:40 +0900
committerJunio C Hamano <gitster@pobox.com>2018-10-30 16:34:40 +0900
commit94d00a5c4ebb12f2552118f261d8f82c05c2501d (patch)
tree89cfa22e35b5476dd4ae8ab79277fa6f2eb25557 /git-bisect-lk2009.txt
parenta4df8edd688285dc532353d4075d979d5ec20306 (diff)
downloadgit-htmldocs-94d00a5c4ebb12f2552118f261d8f82c05c2501d.tar.gz
Autogenerated HTML docs for v2.19.1-708-g4ede3
Diffstat (limited to 'git-bisect-lk2009.txt')
-rw-r--r--git-bisect-lk2009.txt30
1 files changed, 15 insertions, 15 deletions
diff --git a/git-bisect-lk2009.txt b/git-bisect-lk2009.txt
index 0f9ef2f25..e99925184 100644
--- a/git-bisect-lk2009.txt
+++ b/git-bisect-lk2009.txt
@@ -633,11 +633,11 @@ and so at step 3) we compute f(X).
Let's take the following graph as an example:
-------------
- G-H-I-J
- / \
+ G-H-I-J
+ / \
A-B-C-D-E-F O
- \ /
- K-L-M-N
+ \ /
+ K-L-M-N
-------------
If we compute the following non optimal function on it:
@@ -649,25 +649,25 @@ g(X) = min(number_of_ancestors(X), number_of_descendants(X))
we get:
-------------
- 4 3 2 1
- G-H-I-J
+ 4 3 2 1
+ G-H-I-J
1 2 3 4 5 6/ \0
A-B-C-D-E-F O
- \ /
- K-L-M-N
- 4 3 2 1
+ \ /
+ K-L-M-N
+ 4 3 2 1
-------------
but with the algorithm used by git bisect we get:
-------------
- 7 7 6 5
- G-H-I-J
+ 7 7 6 5
+ G-H-I-J
1 2 3 4 5 6/ \0
A-B-C-D-E-F O
- \ /
- K-L-M-N
- 7 7 6 5
+ \ /
+ K-L-M-N
+ 7 7 6 5
-------------
So we chose G, H, K or L as the best bisection point, which is better
@@ -773,7 +773,7 @@ forked of the main branch at a commit named "D" like this:
-------------
A-B-C-D-E-F-G <--main
\
- H-I-J <--dev
+ H-I-J <--dev
-------------
The commit "D" is called a "merge base" for branch "main" and "dev"