compare: use gitcmds.merge_base()

Signed-off-by: David Aguilar <davvid@gmail.com>