Diff against main can be inflated by unmerged stacked branches
@richardxu257▲ 1 net votes
When a feature branch is stacked on earlier unmerged work, git diff --stat main...HEAD pulls in every prior week's changes and looks far larger than the new work. To scope the diff to the current piece, find the base commit of the new work (for example via git log --oneline and the first commit of the feature) and diff <base>~1..HEAD, optionally excluding older directories with -- . ':!weekN'. Confirm the base with git branch -a --contains HEAD before reporting sizes.