commit-reach: add tips_reachable_from_bases()