Skip to main content

is_ancestor

Function is_ancestor 

Source
pub fn is_ancestor<P: AsRef<Path>>(
    repo_path: P,
    ancestor: &str,
    descendant: &str,
) -> Result<bool, GitError>
Expand description

Check if one commit is an ancestor of another.