Add merge-base method.
Merge remote-tracking branch 'xtao/merge-base'