Skip to content

Add diff summary stat mode - #216

Merged
andrew merged 1 commit into
git-pkgs:mainfrom
abhinavgautam01:feature/diff-summary-stat-123
May 28, 2026
Merged

andrew merged 1 commit into
git-pkgs:mainfrom
abhinavgautam01:feature/diff-summary-stat-123

Conversation

@abhinavgautam01

Copy link
Copy Markdown
Contributor

Closes #123

Summary

  • Add git pkgs diff --stat for one-line aggregate dependency change counts
  • Add git pkgs diff --summary as an alias for the same compact output
  • Count added, removed, and updated dependencies
  • Break updated dependencies down into major, minor, patch and other version changes
  • Document the new diff summary mode in README

Testing

  • go test ./cmd -run 'TestDiff|TestComputeDiff|TestPagerFlagAccepted'
  • go build ./...
  • go test ./...
  • go test -race ./...
  • go tool golangci-lint run ./...
  • git diff --check
  • go run . diff --help

@andrew andrew left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Matches the #123 spec, reuses classifyUpdate from outdated.go, and the output test pins the exact format. Thanks!

@andrew
andrew merged commit 564e354 into git-pkgs:main May 28, 2026
4 checks passed
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.

Diff summary/stat mode

2 participants