module documentation
Generate diff statistics similar to git's --stat option.
This module provides functionality to parse unified diff output and generate statistics about changes, including: - Number of lines added and removed per file - Binary file detection - File rename detection - Formatted output similar to git diff --stat
| Function | diffstat |
Generate summary statistics from a git style diff ala (git diff tag1 tag2 --stat). |
| Function | main |
Main entry point for diffstat command line tool. |
| Function | parse |
Parse a git style diff or patch to generate diff stats. |
| Constant | _GIT |
Undocumented |
| Constant | _GIT |
Undocumented |
| Constant | _GIT |
Undocumented |
| Constant | _GIT |
Undocumented |
| Constant | _GIT |
Undocumented |
| Constant | _GIT |
Undocumented |
| Constant | _GIT |
Undocumented |
| Constant | _GIT |
Undocumented |
| Variable | _git |
Undocumented |
Generate summary statistics from a git style diff ala (git diff tag1 tag2 --stat).
- Returns: A byte string that lists the changed files with change
- counts and histogram.
| Parameters | |
lines:Sequence[ | list of byte string "lines" from the diff to be parsed |
maxint | maximum line length for generating the summary statistics (default 80) |
| Returns | |
bytes | Undocumented |