Skip to main content

classify

Function classify 

Source
pub async fn classify(
    repo: &Path,
    base: &str,
    head: &str,
    start: Option<&str>,
) -> Result<Option<Evidence>>
Expand description

Ask git whether head is already represented in base. Both are pinned to ids first so a ref that moves mid-check cannot split the answer.

start is the commit the branch was cut from, when known: a branch still sitting on it adds nothing and is not “contained” in any meaningful sense, even though it is an ancestor of a base that has moved on.