]> git.ipfire.org Git - thirdparty/git.git/commit - bisect.c
bisect: avoid using the rev_info flag leak_pending
authorRené Scharfe <l.s.r@web.de>
Mon, 25 Dec 2017 17:45:36 +0000 (18:45 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 Dec 2017 21:50:05 +0000 (13:50 -0800)
commit148f14ab5e066bb95a9f0bc00380ca98369555dd
treeb0a33d353055f7ebdcdc145af53be88a0a1624b1
parent4ad315fc99d906364c9a5d75a319752cf4056ae5
bisect: avoid using the rev_info flag leak_pending

The leak_pending flag is so awkward to use that multiple comments had to
be added around each occurrence.  We only use it for remembering the
commits whose marks we have to clear after checking if all of the good
ones are ancestors of the bad one.  This is easy, though: We need to do
that for the bad and good commits, of course.

Let check_good_are_ancestors_of_bad() create and own the array of bad
and good commits, and use it to clear the commit marks as well.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bisect.c