Adding method to test if commit is an ancestor of another.