git-diff-stat-cli
v1.0.0
Published
Git diff statistics analyzer — detailed stats about changes
Downloads
14
Readme
git-diff-stat-cli
Git diff statistics analyzer — shows detailed stats about changes in your repository.
Installation
npm install -g @asdsadw12312dwd2112xz/git-diff-stat-cliOr use with npx:
npx @asdsadw12312dwd2112xz/git-diff-stat-cliUsage
# Show stats for unstaged changes
git-diff-stat
# Show stats for staged changes
git-diff-stat --staged
# Compare current branch with main
git-diff-stat --compare main
# Changes since a date
git-diff-stat --since "1 week ago"
# Filter by author
git-diff-stat --author "John"
# Show only top 10 changed files
git-diff-stat --top 10
# JSON output
git-diff-stat --json
# Combine options
git-diff-stat --since "1 month ago" --author "Jane" --top 5 --jsonOutput
Per-file breakdown
Each file is shown with:
- Insertions (green
+N) - Deletions (red
-N) - Visual bar chart (green
+for additions, red-for deletions)
Language breakdown
Files grouped by detected language (from file extension), showing file count and line changes per language.
Summary
- Total files changed
- Total insertions / deletions
- Net change
- Most active file
Options
| Option | Description |
|--------|-------------|
| --staged | Show stats for staged (cached) changes |
| --compare <branch> | Compare current branch with another branch or ref |
| --since <date> | Filter commits since a date (e.g. "1 week ago", "2024-01-01") |
| --author <name> | Filter commits by author name |
| --top <n> | Show only the top N most changed files |
| --json | Output results as JSON |
| --version | Show version |
| --help | Show help |
Building from source
npm install
npm run buildLicense
MIT
