diff options
author | Stephan Beyer <s-beyer@gmx.net> | 2016-04-10 15:19:02 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-04-15 12:27:29 -0700 |
commit | fee69a87e7937865dce79e0ee31ea24672291246 (patch) | |
tree | a2dc254b165c152b43a0f52cbe5f72f723beae23 | |
parent | 4d1b572b8a8292b8af1086cd22287e7831fde05f (diff) | |
download | git-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.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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. |