Use 'merge-base --all' where applicable.