Find out which commits go to which branches.