Get parent for non-initial commits