bisect: when skipping, choose a commit away from a skipped commit
authorChristian Couder <chriscool@tuxfamily.org>
Sat, 6 Jun 2009 04:41:34 +0000 (06:41 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 6 Jun 2009 18:26:56 +0000 (11:26 -0700)
commit62d0b0daf12239fdb898a0d197dfc49a5e2742b0
tree773b2848ee77cc9cd8e05b2609cdc95fdde871c7
parent9af3589e0e42eb289dfdb8bb4031e5bec4923308
bisect: when skipping, choose a commit away from a skipped commit

To do that a new function "apply_skip_ratio" is added and another
function "managed_skipped" is created to wrap both "filter_skipped"
and the previous one.

In "managed_skipped" we detect when we should choose a commit away
from a skipped one and then we automatically choose a skip ratio
to pass to "apply_skip_ratio".

The ratio is choosen so that it alternates between 1/5, 2/5 and
3/5.

In "apply_skip_ratio", we ignore a given ratio of all the commits
that could be tested.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bisect.c