diffstat
« Back to VersTracker
Description:
Produce graph of changes introduced by a diff file
Type: Formula  |  Latest Version: 1.68@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: diff patch visualization developer-tools command-line
Install: brew install diffstat
About:
diffstat is a command-line utility that reads a unified diff file from standard input and generates a histogram of the lines added, removed, and modified for each file. It provides a concise summary of patch size and scope, making it ideal for quickly assessing the magnitude of changes in version control diffs. The tool supports multiple diff formats and is commonly used in software development workflows.
Key Features:
  • Parses unified diff format from stdin or files
  • Generates histogram graphs of line changes per file
  • Supports multiple output formats including plain text and graphs
  • Handles various diff sources including Git, CVS, and standard diffs
  • Lightweight and fast for quick analysis
Use Cases:
  • Reviewing large patches to understand scope of changes before applying
  • Generating summary statistics for code reviews and commit messages
  • Automating change analysis in CI/CD pipelines
  • Comparing versions of files across different branches
Alternatives:
  • git diff --stat – Built into Git, provides similar histogram but requires Git repository context
  • wc -l – Counts lines but lacks diff-specific analysis and visual histogram output
  • grep '^+' | wc -l – Manual approach to count additions, no built-in visualization or file grouping
License: MIT-CMU
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, arm64_ventura, sonoma, ventura, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Sep 15, 2025 7:06am 0 VERSION_BUMP bbc70d0b
Nov 26, 2024 12:17am 0 VERSION_BUMP 20f4abcf
Nov 11, 2024 8:07pm 0 VERSION_BUMP 5e9e5561
Nov 11, 2024 1:15pm 0 VERSION_BUMP 5d39b374