Skip to main content

behind_base_count

Function behind_base_count 

Source
pub fn behind_base_count(branch: &str, base: &str) -> usize
Expand description

How many commits base has that branch does not (branch..base).

For a feature branch and origin/main, this is how far the trunk moved since the branch last caught up; 0 means the branch sits on the latest base. Returns 0 when either ref is unresolvable.