commit-graph: merge commit-graph chains