views: add a BranchCompareView class