Merges a branch.