Skip to main content

ancestry

Function ancestry 

Source
pub async fn ancestry(repo: &Path, ancestor: &str, of: &str) -> Result<bool>
Expand description

is_ancestor that keeps “no” apart from “could not tell”: merge-base --is-ancestor exits 0 for yes, 1 for no and anything else for an error (an unknown object, a shallow clone), and reading an error as “no” would report a merged change as unmerged.