NAME
ddiiffffssttaatt - make histogram from diff-output
UUSSAAGGEEddiiffffssttaatt [options] [file-specifications]
SYNOPSIS
This program reads the output of ddiiffff and displays a histogram of theinsertions, deletions, and modifications per-file.
DESCRIPTION
Diffstat is a program that is useful for reviewing large, complex patch files. It reads from one or more input files which contain output from ddiiffff, producing a histogram of the total lines changed for each filereferenced. If the input filename ends with .bz2, .Z or .gz, diffstat
will read the uncompressed data via a pipe. Diffstat recognizes the most popular types of output from diff: unified preferred by the ppaattcchh utility. context best for readability, but not very compact. default not good for much, but simple to generate. DDiiffffssttaatt detects the lines that are output by ddiiffff to tell which files are compared, and then counts the markers in the first column that denote the type of change (insertion, deletion or modification). Theseare shown in the histogram as "+", "-" and "!" characters.
If no filename is given on the command line, ddiiffffssttaatt reads the differ-
ences from the standard input. OOPPTTIIOONNSS-cc prefix each line of output with "#", making it a comment-line
for shell scripts.-ee file
redirect standard error to file.-ff format
specify 0 for concise, 1 for normal output.-hh prints the usage message and exits.
-kk suppress the merging of filenames in the report.
-nn number
specify the minimum width used for filenames. If you don't specify this, ddiiffffssttaatt uses the length of the longest filename, after stripping common prefixes.-oo file
redirect standard output to file.-pp number
override the logic that strips common pathnames, simulating theppaattcchh "-p" option.
-uu suppress the sorting of filenames in the report.
-vv show progress, e.g., if the output is redirected to a file,
write progress messages to the standard error.-VV prints the current version number and exits.
-ww number
specify the maximum width of the histogram. The plot will never be shorter than 10 columns, just in case the filenames get too large. ENVIRONMENT DDiiffffssttaatt runs in a portable UNIX(R) environment. FILES DDiiffffssttaatt is a single binary module, which uses no auxiliary files.BUGS
DDiiffffssttaatt makes a lot of assumptions about the format of a ddiiffff file. There's no easy way to determine the degree of overlap between the "before" and "after" displays of modified lines.SEE ALSO
diff (1). AUTHORThomas Dickey
DIFFSTAT(1).