[PATCH 04/16] bisect: make algorithm behavior independent of DEBUG_BISECT
- From
Stephan Beyer <s-beyer@gmx.net>
- Date
- Feb 26, 2016, 02:04 UTC
- Message-ID
- <1456452282-10325-5-git-send-email-s-beyer@gmx.net>
- In-Reply-To
- <1456452282-10325-1-git-send-email-s-beyer@gmx.net>
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> --- bisect.c | 2 -- 1 file changed, 2 deletions(-)
diff --git a/bisect.c b/bisect.c index 905e63a..412e2c0 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.
-- 2.7.1.354.gd492730.dirty