bisect: check ancestors without forking a "git rev-list" process