Skip to main content

commits_ahead

Function commits_ahead 

Source
pub fn commits_ahead(worktree_path: &Path, base: &str) -> Result<usize>
Expand description

Count commits on the current branch that are ahead of base (e.g. “main”). Returns 0 if the branch is at or behind base.