pub fn commits_ahead(worktree_path: &Path, base: &str) -> Result<usize>
Count commits on the current branch that are ahead of base (e.g. “main”). Returns 0 if the branch is at or behind base.
base