From: Junio C Hamano Date: Sat, 23 Aug 2008 05:31:07 GMT Subject: Re: [bug] Segfault in git rev-list --first-parent --bisect Message-ID: <7vzln42t7o.fsf@gitster.siamese.dyndns.org> In-Reply-To: <7v7ia848aa.fsf@gitster.siamese.dyndns.org> Junio C Hamano writes: > "Avery Pennarun" writes: > >> $ git rev-list --first-parent --bisect 5109c91 ^d798a2bfe094 >> Segmentation fault > > Totally untested, usefulness fairly unknown. The latter part of this statement needs a bit of explanation. I do not mean "--first-parent --bisect" is useless. What I meant is that the approach is only catering to --first-parent and not about non-standard way to limit the list such as --since, --max-count, etc. The current bisection algorithm only pays attention to the pathspec based history simplification and bottom..top (aka "UNINTERESTING or not"). A proper fix to handle these cases should work inside do_find_bisection(), and count_interesting_parents() instead of hiding the parents away that first_parent traversal did not touch, like the patch I sent out.