Recursive merge and rebase diagrams.