Under the hood
Git diff-stat helpers now take an explicit working directory instead of assuming the current one
What
A group of internal functions that compute git diff statistics now accept an explicit working directory (cwd) parameter, instead of relying on the ambient current directory or environment. This includes a new check for whether a merge is in progress, which now also takes a working directory.
Why
This makes these git-stats functions work correctly when operating on a git worktree other than the main one, rather than assuming the process's own current directory.