How to get the branch compare by command-line?

I think what I want is here. But there is no mbn command here on my computer/pacman/AUR. @omano