This is now possible via Gitlab UI. See https://docs.gitlab.com/user/project/repository/branches/#as-a-diff