summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Beyer <s-beyer@gmx.net>2016-04-10 15:19:02 +0200
committerJunio C Hamano <gitster@pobox.com>2016-04-15 12:27:29 -0700
commitfee69a87e7937865dce79e0ee31ea24672291246 (patch)
treea2dc254b165c152b43a0f52cbe5f72f723beae23
parent4d1b572b8a8292b8af1086cd22287e7831fde05f (diff)
downloadgit-fee69a87e7937865dce79e0ee31ea24672291246.tar.gz
bisect: make algorithm behavior independent of DEBUG_BISECT
If DEBUG_BISECT is set to 1, bisect does not only show debug information but also changes the algorithm behavior: halfway() is always false. This commit makes the algorithm independent of DEBUG_BISECT. Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
-rw-r--r--bisect.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/bisect.c b/bisect.c
index 2f54d96ddc..1a13f35e28 100644
--- a/bisect.c
+++ b/bisect.c
@@ -101,8 +101,6 @@ static inline int halfway(struct commit_list *p, int nr)
*/
if (p->item->object.flags & TREESAME)
return 0;
- if (DEBUG_BISECT)
- return 0;
/*
* 2 and 3 are halfway of 5.
* 3 is halfway of 6 but 2 and 4 are not.