Add LowestCommonAncestor for commits.