Skip to content

Add a nox diffstat session for sizing a branch's diff - #577

Merged
leoschwarz merged 1 commit into
mainfrom
chore/nox-diffstat
Aug 10, 2026
Merged

Add a nox diffstat session for sizing a branch's diff#577
leoschwarz merged 1 commit into
mainfrom
chore/nox-diffstat

Conversation

@leoschwarz

Copy link
Copy Markdown
Member
  • nox -s diffstat summarizes the branch's diff as added/removed/net lines, bucketed by directory
  • --base / --depth / -x <pathspec> to change the ref, grouping level, and exclude paths
  • Renames count as the edit they contain; --no-renames for the opposite reading

🤖 Prepared with assistance from Claude Opus 5 via Claude Code.

Buckets `git diff --numstat` against the merge base by directory, so a
branch dominated by tests or docs can still be judged on the production
code it touches. Renames count as the edit they contain.

The script needs no dependencies, so the nox session is a venv-less
wrapper that forwards every argument.
@leoschwarz
leoschwarz marked this pull request as ready for review August 10, 2026 07:14
@leoschwarz
leoschwarz merged commit 2176323 into main Aug 10, 2026
24 checks passed
@leoschwarz
leoschwarz deleted the chore/nox-diffstat branch August 10, 2026 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant