pub fn git_diff_stat_vs_base(
path: &Path,
trunks: &[String],
) -> Result<Option<DiffLineStat>>Expand description
Committed diff size of the worktree’s current branch versus its base
trunk (issue #287), via git diff --shortstat <base>...HEAD. Returns
Ok(None) when the path is not a readable repo, when HEAD is itself a
trunk (no meaningful base to diff against — see is_trunk_branch), or
when no base trunk resolves locally. trunks is the configured
trunk-priority list (config.doctor.trunks) so the figure matches the
base gwm pr would target — resolve_trunk walks it before falling
back to the common defaults.